Ask Your Question

Donn's profile - activity

2016-05-26 04:42:50 -0500 received badge  Famous Question (source)
2016-02-12 06:12:27 -0500 received badge  Notable Question (source)
2016-01-21 08:16:23 -0500 received badge  Taxonomist
2016-01-20 03:07:09 -0500 received badge  Nice Question (source)
2016-01-20 03:06:40 -0500 received badge  Popular Question (source)
2016-01-12 05:33:10 -0500 received badge  Student (source)
2016-01-11 07:33:25 -0500 asked a question VM don't sent DHCP DISCOVERY so cannot get IP for DHCP NS[Liberty]

hi all,

i am a very new on openstack. A problem i met is that 'VM cannot get IP from DHCP namespace."

here are some configuration files for your investigate:

root@Controller:~# egrep -v '^#|^$' /etc/neutron/neutron.conf 
[DEFAULT]
verbose = True
state_path = /var/lib/neutron
core_plugin = ml2
service_plugins =router
auth_strategy = keystone
allow_overlapping_ips = True
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
nova_url = http://controller:8774/v2
rpc_backend=rabbit
[matchmaker_redis]
[matchmaker_ring]
[quotas]
[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = neutron
password = Admin123
[database]
connection = mysql+pymysql://neutron:Admin123@controller/neutron
[nova]
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
region_name = RegionOne
project_name = service
username = nova
password = Admin123
[oslo_concurrency]
lock_path = $state_path/lock
[oslo_policy]
[oslo_messaging_amqp]
[oslo_messaging_qpid]
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = Admin123
[qos]
root@Controller:~# 

root@Controller:~# egrep -v '^#|^$' /etc/neutron/l3_agent.ini 
[DEFAULT]
verbose = True
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
use_namespaces = True
external_network_bridge =
router_delete_namespaces = True
[AGENT]
root@Controller:~# 

root@Controller:~# egrep -v '^#|^$' /etc/neutron/dhcp_agent.ini 
[DEFAULT]
verbose = True
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
use_namespaces = True
enable_isolated_metadata = True
dnsmasq_config_file =/etc/neutron/dnsmasq-neutron.conf
dhcp_delete_namespaces = True
[AGENT]
root@Controller:~# 


root@Controller:~# egrep -v '^#|^$' /etc/neutron/dnsmasq-neutron.conf 
dhcp-option-force=26,1450
log-facility=/var/log/neutron/dnsmasq.log
log-dhcp
root@Controller:~# 

root@Controller:~# egrep -v '^#|^$' /etc/neutron/plugins/ml2/ml2_conf.ini 
[ml2]
type_drivers = flat,vlan,gre,vxlan
tenant_network_types = vlan,gre,vxlan
mechanism_drivers = openvswitch,l2population
extension_drivers = port_security
[ml2_type_flat]
flat_networks = external
[ml2_type_vlan]
network_vlan_ranges = external,vlan:1:100
[ml2_type_gre]
tunnel_id_ranges = 100:500
[ml2_type_vxlan]
vni_ranges = 500:1000
vxlan_group = 239.1.1.1
[ml2_type_geneve]
[ovs]
local_ip = 20.10.0.2
enable_tunneling = True
bridge_mappings = vlan:br-vlan,external:br-ex
[agent]
l2_population = True
tunnel_types = gre,vxlan
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True
enable_ipset = True
root@Controller:~# 

root@Controller:~# neutron agent-list 
+--------------------------------------+--------------------+------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host       | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+------------+-------+----------------+---------------------------+
| 16e5117e-58cb-4eaf-b08c-8fa1ea2e8639 | DHCP agent         | Controller | :-)   | True           | neutron-dhcp-agent        |
| 614a3234-387e-485a-bdcf-2351bfd42ef4 | Open vSwitch agent | Controller | :-)   | True           | neutron-openvswitch-agent |
| 71444b39-e7d0-4a24-b6f9-9a2e60c90b64 | Metadata agent     | Controller | :-)   | True           | neutron-metadata-agent    |
| b80cc21a-6c85-4792-8477-6773ccfc9270 | L3 agent           | Controller | :-)   | True           | neutron-l3-agent          |
| f64f1d3d-50e3-4f09-9d8d-4e4933087c1c | Open vSwitch agent | Computer   | :-)   | True           | neutron-openvswitch-agent |
+--------------------------------------+--------------------+------------+-------+----------------+---------------------------+
root@Controller:~# 

root@Controller:~# nova list
+--------------------------------------+----------------+--------+------------+-------------+----------------------------------+
| ID                                   | Name           | Status | Task State | Power State | Networks                         |
+--------------------------------------+----------------+--------+------------+-------------+----------------------------------+
| a99618c1-e6bd-4f82-ad31-872bc0cb2b7c | demo-instance1 | ACTIVE | -          | Running     | demo-net=192.168.1.3, 10.0.0.129 |
+--------------------------------------+----------------+--------+------------+-------------+----------------------------------+
root@Controller:~#

but i checked the vm in consol CLI. no ip was assigned for VNIC. also i cannot ping the floating ip "10.0.0.129" of instance.

from the namespace, i can ping external network from grouter:

root@Controller:~# ip netns exec qrouter-761537a6-9f74-42b1-b7a5-20493b2ecfde ping 8.8.4.4
PING 8.8.4.4 (8.8.4.4) 56(84) bytes of data.
64 bytes from 8.8.4.4: icmp_seq=1 ttl=128 time=45.6 ms
64 bytes from 8.8.4.4: icmp_seq=2 ttl=128 time=36.1 ms
^C
--- 8.8.4.4 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 36.156/40.883/45.611/4.731 ms
root@Controller ...
(more)
2015-12-31 01:49:34 -0500 commented answer Glance image-list: Invalid OpenStack Identity credentials in L

thanks, after change it to "username", the issue had been solved. but there are releated error log. thanks a lot to you all.

2015-12-30 05:31:34 -0500 received badge  Famous Question (source)
2015-12-30 01:44:05 -0500 answered a question Glance image-list: Invalid OpenStack Identity credentials in L

api log while changing "user-name" to "username":

2015-12-24 21:58:37.724 2811 INFO glance.common.wsgi [-] Child 2811 exiting normally 2015-12-24 21:58:38.833 2822 WARNING oslo_config.cfg [-] Option "username" from group "keystone_authtoken" is deprecated. Use option "user-name" from group "keystone_authtoken". 2015-12-24 21:58:38.894 2822 INFO glance.common.wsgi [-] Starting 2 workers 2015-12-24 21:58:38.897 2822 INFO glance.common.wsgi [-] Started child 2831 2015-12-24 21:58:38.898 2831 INFO eventlet.wsgi.server [-] (2831) wsgi starting up on http://0.0.0.0:9292/ 2015-12-24 21:58:38.901 2822 INFO glance.common.wsgi [-] Started child 2832 2015-12-24 21:58:38.902 2832 INFO eventlet.wsgi.server [-] (2832) wsgi starting up on http://0.0.0.0:9292/ root@Controller:/var/log/glance#

register.log while changing to "username":

2015-12-24 21:58:33.126 2767 INFO glance.common.wsgi [-] Child 2767 exiting normally 2015-12-24 21:58:33.917 2778 WARNING oslo_config.cfg [-] Option "username" from group "keystone_authtoken" is deprecated. Use option "user-name" from group "keystone_authtoken". 2015-12-24 21:58:33.920 2778 INFO glance.common.wsgi [-] Starting 2 workers 2015-12-24 21:58:33.923 2778 INFO glance.common.wsgi [-] Started child 2788 2015-12-24 21:58:33.924 2788 INFO eventlet.wsgi.server [-] (2788) wsgi starting up on http://0.0.0.0:9191/ 2015-12-24 21:58:33.927 2778 INFO glance.common.wsgi [-] Started child 2789 2015-12-24 21:58:33.928 2789 INFO eventlet.wsgi.server [-] (2789) wsgi starting up on http://0.0.0.0:9191/ root@Controller:/var/log/glance#

2015-12-30 01:42:43 -0500 commented answer Glance image-list: Invalid OpenStack Identity credentials in L

hi, thanks. i don't have the corresponding bug link. bug i have saw many time about this issue. the correct should be "user-name" or "user_name". you can say the log file from below when i change it.

2015-12-29 20:39:24 -0500 commented answer Glance image-list: Invalid OpenStack Identity credentials in L

hi, thanks for your reply. "user-name" is correct. if i change it to "username", there are some error log when i start api or registry processes. it's also a document bug in openstack web.

2015-12-29 10:55:29 -0500 received badge  Notable Question (source)
2015-12-29 09:10:52 -0500 commented answer glance image-create: Invalid OpenStack Identity credentials.

hi, did you got an valid solution for this issue? because i met the similar problem, hopefully looking forward your anwser. thanks

2015-12-29 08:26:48 -0500 received badge  Editor (source)
2015-12-28 02:39:17 -0500 received badge  Popular Question (source)
2015-12-25 08:21:37 -0500 received badge  Enthusiast
2015-12-24 23:10:47 -0500 asked a question Glance image-list: Invalid OpenStack Identity credentials in L

hi all,

i met a problem about the identity credential issue. the installation guide is "http://docs.openstack.org/liberty/install-guide-ubuntu/". when trying to create an image or show image list. an error "Invalid OpenStack Identity credentials" occurred. i have tried both on ubuntu 14.04 LTS and ubuntu 15. but issue is same.

i checked this website and found some similar issue, such as 'https://ask.openstack.org/en/question/57155/image-service-invalid-openstack-identity-credentials/". the solution in this issue cannot solve my problem.

i have looked into it for long time but....

all ENV have been sourced into OS.

root@Controller:~# env | grep OS_
OS_PROJECT_DOMAIN_ID=default
OS_IMAGE_API_VERSION=2
OS_USER_DOMAIN_ID=default
OS_PROJECT_NAME=admin
OS_IDENTITY_API_VERSION=3
OS_PASSWORD=Admin123
OS_AUTH_URL=http://controller:35357/v3
OS_USERNAME=admin
OS_TENANT_NAME=admin
root@Controller:~#

when using "glance image-list", blow is error log:

2015-12-26 12:32:35.632 5645 DEBUG eventlet.wsgi.server [-] (5645) accepted ('10.20.0.2', 41093) server /usr/lib/python2.7/dist-packages/eventlet/wsgi.py:826
2015-12-26 12:32:35.636 5645 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: GET /v2/images Accept: */* process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:47
2015-12-26 12:32:35.637 5645 DEBUG glance.api.middleware.version_negotiation [-] Using url versioning process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:60
2015-12-26 12:32:35.638 5645 DEBUG glance.api.middleware.version_negotiation [-] Matched version: v2 process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:72
2015-12-26 12:32:35.638 5645 DEBUG glance.api.middleware.version_negotiation [-] new path /v2/images process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:73
2015-12-26 12:32:35.640 5645 DEBUG keystoneclient.session [-] REQ: curl -g -i -X GET http://controller:35357 -H "Accept: application/json" -H "User-Agent: glance/11.0.0 keystonemiddleware.auth_token/2.3.0" _http_log_request /usr/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-12-26 12:32:35.653 5645 DEBUG keystoneclient.session [-] RESP: [300] Content-Length: 591 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Sat, 26 Dec 2015 04:32:35 GMT Content-Type: application/json X-Distribution: Ubuntu 
RESP BODY: {"versions": {"values": [{"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}, {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://controller:35357/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}]}}
 _http_log_response /usr/lib/python2.7/dist-packages/keystoneclient/session.py:215
2015-12-26 12:32:35.654 5645 DEBUG keystoneclient.auth.identity.v3.base [-] Making authentication request to http://controller:35357/v3/auth/tokens get_auth_ref /usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/v3/base.py:188
2015-12-26 12:32:35.738 5645 DEBUG keystoneclient.session [-] Request returned failure status: 400 request /usr/lib/python2.7/dist-packages/keystoneclient/session.py:400
2015-12-26 12:32:35.738 ...
(more)
2015-12-24 03:50:43 -0500 commented question Glance API start with some errors

i don't think i have some config errors because i have installed kilo and L version OPENSTACK SW on centos 7.0.

2015-12-24 03:48:37 -0500 commented question Glance API start with some errors

no, i didn't installed swift. but when i found this problem, i also tried to install swift on my controller. but nothing help. issue was same as before. firstly, i installed all package on Ubuntu 14.04LTS. the problem was appear. after that, i tried to use Ubuntu 15, same error occurred....

2015-12-24 03:44:01 -0500 received badge  Popular Question (source)
2015-12-14 06:54:10 -0500 asked a question Glance API start with some errors

hi all,

i met a problem about the glance api issue. some errors occurred when i start the glance api. below is details error info:

2015-12-13 11:43:55.041 17489 ERROR stevedore.extension [-] Could not load 'glance.store.swift.Store': No module named swiftclient
2015-12-13 11:43:55.041 17489 ERROR stevedore.extension [-] No module named swiftclient
2015-12-13 11:43:55.041 17489 ERROR stevedore.extension Traceback (most recent call last):
2015-12-13 11:43:55.041 17489 ERROR stevedore.extension   File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 162, in _load_plugins
2015-12-13 11:43:55.041 17489 ERROR stevedore.extension     verify_requirements,
2015-12-13 11:43:55.041 17489 ERROR stevedore.extension   File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 183, in _load_one_plugin
2015-12-13 11:43:55.041 17489 ERROR stevedore.extension     plugin = ep.resolve()
2015-12-13 11:43:55.041 17489 ERROR stevedore.extension   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2361, in resolve
2015-12-13 11:43:55.041 17489 ERROR stevedore.extension     module = __import__(self.module_name, fromlist=['__name__'], level=0)
2015-12-13 11:43:55.041 17489 ERROR stevedore.extension   File "/usr/lib/python2.7/dist-packages/glance_store/_drivers/swift/__init__.py", line 17, in <module>
2015-12-13 11:43:55.041 17489 ERROR stevedore.extension     from glance_store._drivers.swift.store import *  # noqa
2015-12-13 11:43:55.041 17489 ERROR stevedore.extension   File "/usr/lib/python2.7/dist-packages/glance_store/_drivers/swift/store.py", line 28, in <module>
2015-12-13 11:43:55.041 17489 ERROR stevedore.extension     import swiftclient
2015-12-13 11:43:55.041 17489 ERROR stevedore.extension ImportError: No module named swiftclient
2015-12-13 11:43:55.041 17489 ERROR stevedore.extension 
2015-12-13 11:43:55.052 17489 ERROR stevedore.extension [-] Could not load 'swift': cannot import name utils
2015-12-13 11:43:55.052 17489 ERROR stevedore.extension [-] cannot import name utils
2015-12-13 11:43:55.052 17489 ERROR stevedore.extension Traceback (most recent call last):
2015-12-13 11:43:55.052 17489 ERROR stevedore.extension   File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 162, in _load_plugins
2015-12-13 11:43:55.052 17489 ERROR stevedore.extension     verify_requirements,
2015-12-13 11:43:55.052 17489 ERROR stevedore.extension   File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 183, in _load_one_plugin
2015-12-13 11:43:55.052 17489 ERROR stevedore.extension     plugin = ep.resolve()
2015-12-13 11:43:55.052 17489 ERROR stevedore.extension   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2361, in resolve
2015-12-13 11:43:55.052 17489 ERROR stevedore.extension     module = __import__(self.module_name, fromlist=['__name__'], level=0)
2015-12-13 11:43:55.052 17489 ERROR stevedore.extension   File "/usr/lib/python2.7/dist-packages/glance_store/_drivers/swift/__init__.py", line 16, in <module>
2015-12-13 11:43:55.052 17489 ERROR stevedore.extension     from glance_store._drivers.swift import utils  # noqa
2015-12-13 11:43:55.052 17489 ERROR stevedore.extension ImportError: cannot import name utils
2015-12-13 11:43:55.052 17489 ERROR stevedore.extension 
2015-12-13 11:43:55.059 17489 INFO glance.common.wsgi [-] Starting 2 workers ...
(more)