Ask Your Question

Anirudh's profile - activity

2019-08-15 02:35:13 -0600 received badge  Famous Question (source)
2019-04-28 01:15:02 -0600 received badge  Notable Question (source)
2019-04-15 07:15:06 -0600 received badge  Notable Question (source)
2019-04-15 07:15:06 -0600 received badge  Popular Question (source)
2019-04-09 04:32:58 -0600 commented question swarm magnum

I am also facing the same issue Failed to enable unit: Unit file etcd.service does not exist.

Failed to start swarm-manager.service: Unit etcd.service not found.

Please suggest how to resolve the issue.

2019-03-27 02:27:53 -0600 asked a question [ZUN] Access the container command giving 500 Internal Server Error

Hi,

I have launched a zun container, but when trying to access it using the command

openstack appcontainer exec --interactive container /bin/sh

I am observing Internal Server Error 500.

The logs obtained are as follows:

http://controller:9517 "POST /v1/containers/c58c4c9d-6043-4501-8ef3-3ac587ab1481/execute_resize?h=43&exec_id=0cdca9d060fe17dc832be766f7fd41bda7a78ed9e401bffedfb0badc6a11f4a1&w=122 HTTP/1.1" 500 261 RESP: [500] Connection: keep-alive Content-Length: 261 Content-Type: application/json Date: Wed, 27 Mar 2019 07:22:52 GMT Openstack-Api-Maximum-Version: container 1.22 Openstack-Api-Minimum-Version: container 1.1 Openstack-Api-Version: container 1.20 Vary: OpenStack-API-Version X-Openstack-Request-Id: req-6dfefd40-3021-4c0f-a053-0f43952b661b RESP BODY: {"errors": [{"status": 500, "code": "container.", "links": [], "title": "Internal Server Error", "detail": "Your request could not be handled because of a problem in the server. Error Correlation id is: b2895347-0625-406f-b291-b8a5527b25ee", "request_id": ""}]} POST call to container for http://controller:9517/v1/containers/c58c4c9d-6043-4501-8ef3-3ac587ab1481/execute_resize?h=43&exec_id=0cdca9d060fe17dc832be766f7fd41bda7a78ed9e401bffedfb0badc6a11f4a1&w=122 (http://controller:9517/v1/containers/...) used request id req-6dfefd40-3021-4c0f-a053-0f43952b661b Internal Server Error (HTTP 500) (Request-ID: req-6dfefd40-3021-4c0f-a053-0f43952b661b) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand result = cmd.run(parsed_args) File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run return super(Command, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 184, in run return_code = self.take_action(parsed_args) or 0 File "/usr/local/lib/python2.7/dist-packages/zunclient/osc/v1/containers.py", line 537, in take_action websocketclient.do_exec(client, url, container, exec_id, "~", 0.5) File "/usr/local/lib/python2.7/dist-packages/zunclient/common/websocketclient/websocketclient.py", line 379, in do_exec wscls.handle_resize() File "/usr/local/lib/python2.7/dist-packages/zunclient/common/websocketclient/websocketclient.py", line 196, in handle_resize self.tty_resize(height=rows, width=cols) File "/usr/local/lib/python2.7/dist-packages/zunclient/common/websocketclient/websocketclient.py", line 294, in tty_resize self.cs.containers.execute_resize(self.id, self.exec_id, width, height) File "/usr/local/lib/python2.7/dist-packages/zunclient/v1/containers.py", line 165, in execute_resize qparams={'exec_id': exec_id, 'w': width, 'h': height})[1] File "/usr/local/lib/python2.7/dist-packages/zunclient/v1/containers.py", line 128, in _action *kwargs) File "/usr/local/lib/python2.7/dist-packages/zunclient/common/httpclient.py", line 367, in json_request resp = self._http_request(url, method, *kwargs) File "/usr/local/lib/python2.7/dist-packages/zunclient/common/httpclient.py", line 350, in _http_request error_json.get('debuginfo'), method, url) InternalServerError: Internal Server Error (HTTP 500) (Request-ID: req-6dfefd40-3021-4c0f-a053-0f43952b661b) clean_up ExecContainer: Internal Server Error (HTTP 500) (Request-ID: req-6dfefd40-3021-4c0f-a053-0f43952b661b) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 135, in run ret_val = super(OpenStackShell, self).run(argv) File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 279, in run result = self.run_subcommand(remainder) File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 175, in run_subcommand ret_value = super(OpenStackShell, self).run_subcommand(argv) File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand result = cmd.run(parsed_args) File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run return super(Command, self).run(parsed_args ... (more)

2019-03-25 00:11:39 -0600 answered a question Senlin - HttpException: The request you have made requires authentication.

Additionally, we need to give permissions in /etc/senlin/senlin.conf file

[keystone_authtoken]

auth_url = http://controller:5000

auth_type = password

user_domain_name = default

username = senlin

password = <password>

After adding and restarting senlin engine and senlin api, this issue will get resolve

2019-03-25 00:04:59 -0600 received badge  Famous Question (source)
2019-03-25 00:04:34 -0600 received badge  Popular Question (source)
2019-03-19 05:31:52 -0600 asked a question How can we Scale Zun Containers

I have integrated openstack setup with ZUN services. How can I Scale up my Zun Containers on the basis of any condition that gets fulfilled?

2018-05-30 16:06:17 -0600 received badge  Famous Question (source)
2018-03-07 00:14:20 -0600 received badge  Notable Question (source)
2017-10-15 18:22:45 -0600 received badge  Popular Question (source)
2017-10-15 18:22:45 -0600 received badge  Notable Question (source)
2017-07-22 04:14:28 -0600 received badge  Popular Question (source)
2017-07-12 04:05:59 -0600 received badge  Notable Question (source)
2017-07-12 04:05:59 -0600 received badge  Popular Question (source)
2017-07-03 05:12:42 -0600 asked a question Unable to install Ceilometer Services on IPv6

Hi,

We are trying to configure Ceilometer Services using Ipv6, but facing error in creating Mongo DB

mongo --host eff0:eff0:eff0::241 –ipv6 --eval ' db = db.getSiblingDB("ceilometer"); db.addUser({user: "ceilometer", pwd: "CEILOMETER_DBPASS", roles: [ "readWrite", "dbAdmin" ]})' MongoDB shell version: 2.4.9 connecting to: controller.youdomain.com:27017/test Wed Jun 28 13:16:02.598 Error: couldn't connect to server controller.youdomain.com:27017 at src/mongo/shell/mongo.js:147 exception: connect failed

Also we tried to configure, IPv6 Bind Address in /etc/mongodb.conf bind_ip = ::

On restarting the service, we are observing the below error in mongo DB logs: -

Wed Jun 28 13:05:09.704 [initandlisten] journal dir=/var/lib/mongodb/journal Wed Jun 28 13:05:09.704 [initandlisten] recover : no journal files present, no recovery needed Wed Jun 28 13:05:09.754 [initandlisten] getaddrinfo("::") failed: Address family for hostname not supported Wed Jun 28 13:05:09.754 [websvr] getaddrinfo("::") failed: Address family for hostname not supported Wed Jun 28 13:05:09.754 [websvr] admin web console waiting for connections on port 28017 Wed Jun 28 13:05:09.755 [initandlisten] waiting for connections on port 27017

Can someone please suggest some pointers in order to proceed

2017-06-21 07:19:21 -0600 received badge  Famous Question (source)
2017-06-06 00:33:14 -0600 asked a question IPv6 with Global Scope not getting assigned when VM Boots up

Hi Team,

We are configuring IPv6 Networks on OpenStack Mitaka IPv4 Network, but we are facing the issue that VM after boot up has no IPv6 assigned on the Ethernet port.

We have configured the Networks and configuration following the link

https://docs.openstack.org/mitaka/networking-guide/config-ipv6.html (https://docs.openstack.org/mitaka/net...)

Dibbler server is also being configured for DHCPv6.

Also enabled the flag in /etc/nova/nova.conf

                     use_ipv6=true

We are able to access the VM via IPv6, by manually assigning the IPv6 by accessing the console using the command

                      ip -6 addr add <IPV6> dev <Interface>

Can you please suggest some steps in order to resolve the concerns.

Regards Anirudh Gupta

2017-06-06 00:19:53 -0600 received badge  Enthusiast
2017-05-18 00:28:19 -0600 asked a question Unable to create Devstack setup for IPV6

Hi,

We are trying to deploy Devstack setup for both Liberty and Mitaka IPV6 configuration, but unable to proceed with the following error:-

+./stack.sh:main:1016                      cat
+./stack.sh:main:1031                      source /home/stack/devstack/userrc_early
++userrc_early:source:4                     export OS_IDENTITY_API_VERSION=3
++userrc_early:source:4                     OS_IDENTITY_API_VERSION=3
++userrc_early:source:5                     export 'OS_AUTH_URL=http://[abcd:abcd:abcd::241]:35357'
++userrc_early:source:5                     OS_AUTH_URL='http://[abcd:abcd:abcd::241]:35357'
++userrc_early:source:6                     export OS_USERNAME=admin
++userrc_early:source:6                     OS_USERNAME=admin
++userrc_early:source:7                     export OS_USER_DOMAIN_ID=default
++userrc_early:source:7                     OS_USER_DOMAIN_ID=default
++userrc_early:source:8                     export OS_PASSWORD=abc123
++userrc_early:source:8                     OS_PASSWORD=abc123
++userrc_early:source:9                     export OS_PROJECT_NAME=admin
++userrc_early:source:9                     OS_PROJECT_NAME=admin
++userrc_early:source:10                    export OS_PROJECT_DOMAIN_ID=default
++userrc_early:source:10                    OS_PROJECT_DOMAIN_ID=default
++userrc_early:source:11                    export OS_REGION_NAME=RegionOne
++userrc_early:source:11                    OS_REGION_NAME=RegionOne
+./stack.sh:main:1033                      create_keystone_accounts
+lib/keystone:create_keystone_accounts:372  local admin_tenant
++lib/keystone:create_keystone_accounts:373  openstack project show admin -f value -c id
**Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL.**
Could not determine a suitable URL for the plugin
+lib/keystone:create_keystone_accounts:373  admin_tenant=
+lib/keystone:create_keystone_accounts:1   exit_trap
+./stack.sh:exit_trap:474                  local r=1
++./stack.sh:exit_trap:475                  jobs -p
+./stack.sh:exit_trap:475                  jobs=
+./stack.sh:exit_trap:478                  [[ -n '' ]]
+./stack.sh:exit_trap:484                  kill_spinner
+./stack.sh:kill_spinner:370               '[' '!' -z '' ']'
+./stack.sh:exit_trap:486                  [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:487                  echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:488                  generate-subunit 1495102840 483 fail
+./stack.sh:exit_trap:489                  [[ -z /opt/stack/logs ]]
+./stack.sh:exit_trap:492                  /home/stack/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2017-05-18-102844.txt for details
+./stack.sh:exit_trap:498                  exit 1

The local.conf used is :-

[[local|localrc]]
SERVICE_IP_VERSION=6
**HOST_IP=[abcd:abcd:abcd::241]
HOST_IPV6=$HOST_IP
SERVICE_HOST=$HOST_IPV6
MYSQL_HOST=172.19.53.241
RABBIT_HOST=$HOST_IPV6**
ADMIN_PASSWORD=abc123
DATABASE_PASSWORD=abc123
RABBIT_PASSWORD=abc123
SERVICE_PASSWORD=abc123

For any further details, you can contact me at anirudh2.gupta@aricent.com

Regards Anirudh

2017-03-09 05:06:49 -0600 received badge  Taxonomist
2017-03-01 12:08:27 -0600 received badge  Popular Question (source)
2017-03-01 12:08:27 -0600 received badge  Notable Question (source)
2017-02-28 04:51:26 -0600 asked a question Unable to install Panko Service in Devstack Mitaka

Hi,

I have configured Devstack mitaka and trying to install ceilometer aodh and panko services. But out of the three, i am facing installation error in panko.

can someone please help in resolving the issue.

The script.sh exits giving the following error :-

2017-02-28 15:03:40.908 | 91d00f3791d542d39441f3cea7a2cfef 2017-02-28 15:03:40.917 | ++/opt/stack/panko/devstack/plugin.sh:init_panko:189 sudo install -d -o stack /var/cache/panko 2017-02-28 15:03:40.934 | ++/opt/stack/panko/devstack/plugin.sh:init_panko:190 rm -f '/var/cache/panko/*' 2017-02-28 15:03:40.944 | ++/opt/stack/panko/devstack/plugin.sh:init_panko:192 is_service_enabled panko-api 2017-02-28 15:03:40.991 | ++functions-common:is_service_enabled:2055 return 0 2017-02-28 15:03:40.999 | ++/opt/stack/panko/devstack/plugin.sh:init_panko:192 is_service_enabled mysql postgresql 2017-02-28 15:03:41.040 | ++functions-common:is_service_enabled:2055 return 0 2017-02-28 15:03:41.049 | ++/opt/stack/panko/devstack/plugin.sh:init_panko:193 '[' mysql = mysql ']' 2017-02-28 15:03:41.058 | ++/opt/stack/panko/devstack/plugin.sh:init_panko:194 recreate_database panko 2017-02-28 15:03:41.066 | ++lib/database:recreate_database:112 local db=panko 2017-02-28 15:03:41.075 | ++lib/database:recreate_database:113 recreate_database_mysql panko 2017-02-28 15:03:41.083 | ++lib/databases/mysql:recreate_database_mysql:56 local db=panko 2017-02-28 15:03:41.091 | ++lib/databases/mysql:recreate_database_mysql:57 mysql -uroot -pabc123 -h127.0.0.1 -e 'DROP DATABASE IF EXISTS panko;' 2017-02-28 15:03:41.104 | ++lib/databases/mysql:recreate_database_mysql:58 mysql -uroot -pabc123 -h127.0.0.1 -e 'CREATE DATABASE panko CHARACTER SET utf8;' 2017-02-28 15:03:41.118 | ++/opt/stack/panko/devstack/plugin.sh:init_panko:195 /usr/local/bin/panko-dbsync 2017-02-28 15:03:41.794 | Traceback (most recent call last): 2017-02-28 15:03:41.794 | File "/usr/local/bin/panko-dbsync", line 10, in <module> 2017-02-28 15:03:41.794 | sys.exit(dbsync()) 2017-02-28 15:03:41.794 | File "/opt/stack/panko/panko/cmd/storage.py", line 28, in dbsync 2017-02-28 15:03:41.794 | conf = service.prepare_service() 2017-02-28 15:03:41.794 | File "/opt/stack/panko/panko/service.py", line 34, in prepare_service 2017-02-28 15:03:41.794 | defaults.set_cors_middleware_defaults() 2017-02-28 15:03:41.794 | File "/opt/stack/panko/panko/conf/defaults.py", line 20, in set_cors_middleware_defaults 2017-02-28 15:03:41.795 | cors.set_defaults( 2017-02-28 15:03:41.795 | AttributeError: 'module' object has no attribute 'set_defaults' 2017-02-28 15:03:41.822 | +/opt/stack/panko/devstack/plugin.sh:init_panko:1 exit_trap 2017-02-28 15:03:41.829 | +./stack.sh:exit_trap:474 local r=1 2017-02-28 15:03:41.839 | ++./stack.sh:exit_trap:475 jobs -p 2017-02-28 15:03:41.848 | +./stack.sh:exit_trap:475 jobs= 2017-02-28 15:03:41.857 | +./stack.sh:exit_trap:478 [[ -n '' ]] 2017-02-28 15:03:41.865 | +./stack.sh:exit_trap:484 kill_spinner 2017-02-28 15:03:41.872 | +./stack.sh:kill_spinner:370 '[' '!' -z '' ']' 2017-02-28 15:03:41.880 | +./stack.sh:exit_trap:486 [[ 1 -ne 0 ]] 2017-02-28 15:03:41.889 | +./stack.sh:exit_trap:487 echo 'Error on exit' 2017-02-28 15:03:41.889 | Error on exit 2017-02-28 15:03:41.896 ... (more)

2017-01-09 07:20:32 -0600 received badge  Notable Question (source)
2016-12-07 01:27:32 -0600 received badge  Popular Question (source)
2016-12-06 08:08:53 -0600 commented question Flows are not inserted in OVS 2.6.2 with networking-sfc in Newton Openstack

Facing a communication issue between Driver and the Agent.Openstack Newton Kernel version 3.19.0-25-generic ovs version – 2.4.0. https://wiki.openstack.org/wiki/Neutron/ServiceInsertionAndChaining (https://wiki.openstack.org/wiki/Neutr...) Driver is asking agent to update, but no logs in agent for the update. Can you please help

2016-12-05 04:00:12 -0600 asked a question No IP on Openstack Mitaka VM after its Integration with ODL Boron SR1 and SFC Being installed on it

Hi,

We have upgraded my setup from ODL Beryllium-SR4 to Boron-SR1 and integrated with Openstack Mitaka.

We have only installed below feature :-

feature:install odl-sfc-openflow-renderer odl-sfc-ui odl-ovsdb-openstack odl-netvirt-impl

And then successfully executed the two Curl commands which are used to configure Application Coexistence for SFC and Netvirt.

The commands are sent before creating any VMs.

curl -u admin:admin -H 'Content-type: application/json' -X PUT -d {"netvirt-providers-config":{"table-offset":1}} http://<odl ip="">:8181/restconf/config/netvirt-providers-config:netvirt-providers-config 
 curl -u admin:admin -H 'Content-type: application/json' -X PUT -d '{"sfc-of-renderer-config":{"sfc-of-table-offset":"150","sfc-of-app-egress-table-offset":"11"}}'http://<odl ip="">:8181/restconf/config/sfc-of-renderer:sfc-of-renderer-config

Then proceeded with creating the Networks Subnets and Router, and launched the Virtual Machine (VM).

After Launching the VM, it was observed that there was no IP allocated inside the vm. The command "ifconfig" is showing no IP.

On debugging the issue, it was found that the qrouter was unreachable from qdhcp and vice-versa.

Can you also suggest some pointers from which we can get out of this issue?

Please find below the logs obtained on launching the VM

Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending discover...
Sending discover...
Usage: /sbin/cirros-dhcpc <up|down>
No lease, failing
WARN: /etc/rc3.d/S40-network failed
cirros-ds 'net' up at 192.11
checking http://169.254.169.254/2009-04-04/instance-id
failed 1/20: up 192.64. request failed
failed 2/20: up 195.16. request failed
failed 3/20: up 197.48. request failed
failed 4/20: up 199.78. request failed
failed 5/20: up 202.11. request failed
failed 6/20: up 204.44. request failed
failed 7/20: up 206.75. request failed
failed 8/20: up 209.08. request failed
failed 9/20: up 211.41. request failed
failed 10/20: up 213.75. request failed
failed 11/20: up 216.11. request failed
failed 12/20: up 218.54. request failed
failed 13/20: up 220.97. request failed
failed 14/20: up 223.21. request failed
failed 15/20: up 225.46. request failed
failed 16/20: up 227.70. request failed
failed 17/20: up 229.96. request failed
failed 18/20: up 232.21. request failed
failed 19/20: up 234.49. request failed
failed 20/20: up 236.76. request failed
failed to read iid from metadata. tried 20
2016-12-01 03:35:15 -0600 asked a question Flows are not inserted in OVS 2.6.2 with networking-sfc in Newton Openstack

Hi,

I am facing an issue described as below:

Setup: Newton Devstack, OVS 2.6.2, Networking-sfc(master branch).

-> I created Flows by following official networking guide: http://docs.openstack.org/newton/netw...

$ neutron port-create --name p1 net1
 $ neutron port-create --name p2 net1
 $ neutron port-create --name p3 net1
 $ neutron port-create --name p4 net1
 $ neutron port-create --name p5 net1
 $ neutron port-create --name p6 net1

neutron port-pair-create \
   --description "Firewall SF instance 1" \
   --ingress p1 \
   --egress p2 PP1

neutron port-pair-create \
   --description "Firewall SF instance 2" \
   --ingress p3 \
   --egress p4 PP2

neutron port-pair-create \
   --description "IDS SF instance" \
   --ingress p5 \
   --egress p6 PP3

neutron port-pair-group-create \
   --port-pair PP1 --port-pair PP2 PPG1
 neutron port-pair-group-create \
   --port-pair PP3 PPG2

neutron port-chain-create \
   --port-pair-group PPG1 --port-pair-group PPG2 \
   --flow-classifier FC1 PC1

neutron flow-classifier-create \
   --tenant-id 56884178ef35483f9758a56c4cea183e \
   --description "HTTP traffic from 10.0.0.12 to 10.0.0.3" \
   --ethertype IPv4 \
   --source-ip-prefix 172.19.53.114/32 \
   --destination-ip-prefix 172.19.53.116/32 \
   --protocol tcp \
   --source-port 0:65400 \
   --destination-port 3300:3301 \
   --logical-source-port 90e00c15-570c-44b3-b820-92afb1e3d4e6 \
     FC1

I have following queries:

  1. What should be "--logical-source-port" in this case? I presumed it should be "P1"
  2. I checked with "#ovs-ofctl dump-flows br-int", No new flows are seen in the output, Also traffic satisfyting flow classifier is not reaching to P1 as defined in SFC. It
  3. Is there any dependecies on OVS version, Networking-sfc branch to get sfc working?

Thanks. Any help would be highly appreciable.

Regards Anirudh Gupta

2016-09-10 02:01:08 -0600 received badge  Popular Question (source)
2016-09-10 02:01:08 -0600 received badge  Famous Question (source)
2016-09-10 02:01:08 -0600 received badge  Notable Question (source)
2016-09-09 23:27:45 -0600 answered a question Ceilometer meter-list is empty (Kilo, CentOS7)

******RESOLVED**********

With some debugging and digging into the python code...I have successfully resolved the Kilo Telemetery issue. The Problem with Kilo Release that the session token doesn't get authorized in the code as a result of which no parameters are displayed.

Follow the steps to resolve the issue :- 1. Go to cd /usr/lib/python2.7/dist-packages/ceilometerclient, and there would be a client.py file. Thereare some authentication functions missing in the python code. 2. Replace the content of file with the content below and restart the Ceillometer services.

The alarms would start coming :)

You can download the client.py

https://drive.google.com/open?id=0B4UDDnV66P27TlhyUUpiaTZJekU (https://drive.google.com/open?id=0B4U...)

2016-09-09 23:13:06 -0600 answered a question Ceilometer meter-list is empty (Kilo, CentOS7)

With some debugging and digging into the python code...I have successfully resolved the Kilo Telemetery issue. The Problem with Kilo Release that the session token doesn't get authorized in the code as a result of which no parameters are displayed.

Follow the steps to resolve the issue :- 1. Go to cd /usr/lib/python2.7/dist-packages/ceilometerclient, and there would be a client.py file. Thereare some authentication functions missing in the python code. 2. Replace the content of file with the content below and restart the Ceillometer services.

The alarms would start coming :)

Client.py

Licensed under the Apache License, Version 2.0 (the "License"); you may

not use this file except in compliance with the License. You may obtain

a copy of the License at

#

http://www.apache.org/licenses/LICENSE-2.0 (http://www.apache.org/licenses/LICENS...)

#

Unless required by applicable law or agreed to in writing, software

distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the

License for the specific language governing permissions and limitations

under the License.

from keystoneclient.auth.identity import v2 as v2_auth from keystoneclient.auth.identity import v3 as v3_auth from keystoneclient import discover from keystoneclient import exceptions as ks_exc from keystoneclient import session from oslo_utils import strutils import six.moves.urllib.parse as urlparse

from ceilometerclient.common import utils from ceilometerclient import exc from ceilometerclient.openstack.common.apiclient import auth from ceilometerclient.openstack.common.apiclient import exceptions

def _discover_auth_versions(session, auth_url): # discover the API versions the server is supporting based on the # given URL v2_auth_url = None v3_auth_url = None try: ks_discover = discover.Discover(session=session, auth_url=auth_url) v2_auth_url = ks_discover.url_for('2.0') v3_auth_url = ks_discover.url_for('3.0') except ks_exc.DiscoveryFailure: raise except exceptions.ClientException: # Identity service may not support discovery. In that case, # try to determine version from auth_url url_parts = urlparse.urlparse(auth_url) (scheme, netloc, path, params, query, fragment) = url_parts path = path.lower() if path.startswith('/v3'): v3_auth_url = auth_url elif path.startswith('/v2'): v2_auth_url = auth_url else: raise exc.CommandError('Unable to determine the Keystone ' 'version to authenticate with ' 'using the given auth_url.') return v2_auth_url, v3_auth_url

def _get_keystone_session(**kwargs): # TODO(fabgia): the heavy lifting here should be really done by Keystone. # Unfortunately Keystone does not support a richer method to perform # discovery and return a single viable URL. A bug against Keystone has # been filed: https://bugs.launchpad.net/python-keystoneclient/+bug/1330677 (https://bugs.launchpad.net/python-key...)

# first create a Keystone session
cacert = kwargs.pop('cacert', None)
cert = kwargs.pop('cert', None)
key = kwargs.pop('key', None)
insecure = kwargs.pop('insecure', False)
auth_url = kwargs.pop('auth_url', None)
project_id = kwargs.pop('project_id', None)
project_name = kwargs.pop('project_name', None)
timeout = kwargs.get('timeout')

if insecure:
    verify = False
else:
    verify = cacert or True

if cert and key:
    # passing cert and key together is deprecated in favour of the
    # requests lib form of having the cert and key as a tuple
    cert = (cert, key)

# create the keystone client session
ks_session ...
(more)
2015-09-03 11:47:04 -0600 asked a question while launching VM having Fedora 21, the VM is launched successfully, but ping is not successful

Hi,

while launching VM having Fedora 21, the VM is launched successfully, but when i am trying to ping the Launched VM, its not working. The same ping is unsuccessful while running qcow2 Fedora 21 image and RAW format. Please suggest any relevant information.

Thanks & Regards Anirudh