Ask Your Question

Matt303's profile - activity

2019-02-24 02:25:16 -0600 received badge  Famous Question (source)
2019-02-24 02:25:16 -0600 received badge  Notable Question (source)
2019-02-24 02:25:16 -0600 received badge  Popular Question (source)
2017-08-02 04:19:12 -0600 received badge  Famous Question (source)
2017-01-17 02:51:43 -0600 answered a question Openstack Mitaka ERROR when creating a VM

I had this error message, when I had configured /etc/neutron/plugins/ml2/linuxbridge_agent.ini wrong.

I had put physical_interface_mappings = provider:eth1 into the DEFAULT-Section and that was wrong.

Putting physical_interface_mappings = provider:eth1 into the linux_bridge section solved this issue for me.

I recommend to check /etc/neutron/plugins/ml2/linuxbridge_agent.ini on the controller and compute nodes and I would also check the interfaces configuration for controller and compute nodes. Here is an example of my configuration:

auto eth1

iface eth1 inet manual

up ip link set dev $IFACE up

down ip link set dev $IFACE down

2016-12-12 11:48:30 -0600 received badge  Famous Question (source)
2016-11-29 02:44:36 -0600 asked a question Manila authentication

Hello @ll,

I am using openstack in a test environment and it is version 2.3.0 (I think Newton). I am using debian 8as OS and I am following the guide on www.openstack.org.

At the moment I have issues with manila authentication. I have checked if I had executed the commands of the openstack guide a second time but I was unable to get manila to work.

I am using this commando for verifying:

manila service list

And as a result:

ERROR: Service Unavailable

And in /var/log/manila/manila-api.log:

2016-11-29 08:50:42.794 5759 DEBUG eventlet.wsgi.server [-] (5759) accepted ('::ffff:10.0.0.204', 48910, 0, 0) server /usr/lib/python2.7/dist-packages/eventlet/wsgi.py:867
2016-11-29 08:50:42.797 5759 INFO manila.api.openstack.wsgi [-] GET http://controller:8786/
2016-11-29 08:50:42.798 5759 DEBUG manila.api.openstack.wsgi [-] Unrecognized Content-Type provided in request get_body /usr/lib/python2.7/dist-packages/manila/api/openstack/wsgi.py:642
2016-11-29 08:50:42.799 5759 DEBUG manila.api.openstack.wsgi [-] Calling method '<bound method VersionsController.all of <manila.api.versions.VersionsController object at 0x7fdd6eaf0b50>>' _process_stack /usr/lib/python2.7/dist-packages/manila/api/openstack/wsgi.py:790
2016-11-29 08:50:42.800 5759 INFO manila.api.openstack.wsgi [-] http://controller:8786/ returned with HTTP 300
2016-11-29 08:50:42.805 5759 INFO eventlet.wsgi.server [-] ::ffff:10.0.0.204 - - [29/Nov/2016 08:50:42] "GET / HTTP/1.1" 300 890 0.008196
2016-11-29 08:50:43.092 5759 DEBUG eventlet.wsgi.server [-] (5759) accepted ('::ffff:10.0.0.204', 48912, 0, 0) server /usr/lib/python2.7/dist-packages/eventlet/wsgi.py:867
2016-11-29 08:50:43.113 5759 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
2016-11-29 08:50:43.132 5759 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
2016-11-29 08:50:43.133 5759 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Identity server rejected authorization necessary to fetch token data
2016-11-29 08:50:43.139 5759 INFO eventlet.wsgi.server [-] ::ffff:10.0.0.204 - - [29/Nov/2016 08:50:43] "GET /v2/ca77a1956ef2426195fb3eb73785229e/services HTTP/1.1" 503 335 0.045052

I had also checked the mysql login with manila. That worked. There is also manila listening on port 8786. In "openstack user list" is manila.

This is manila.conf on the controller:

[DEFAULT]
debug = True
transport_url = rabbit://openstack:PASS@controller
default_share_type = default_share_type
share_name_template = share-%s
rootwrap_config = /etc/manila/rootwrap.conf
api_paste_config = /etc/manila/api-paste.ini
auth_strategy = keystone
my_ip = 10.0.0.204
[cinder]
[cors]
[cors.subdomain]
[database]
connection = mysql+pymysql://manila:PASS@controller/manila
[keystone_authtoken]
memcached_servers = controller:11211
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_type = password
project_domain_id = default
user_domain_id = default
project_name = service
username = manila
password = PASS
admin_token=4b443ae69956a373c73f
auth_token=4b443ae69956a373c73f
[matchmaker_redis]
[neutron]
[nova]
[oslo_concurrency]
lock_path = /var/lock/manila
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_middleware]
[oslo_policy]

Maybe ... (more)

2016-11-28 05:54:09 -0600 received badge  Notable Question (source)
2016-11-28 05:05:40 -0600 received badge  Notable Question (source)
2016-11-28 05:05:40 -0600 received badge  Famous Question (source)
2016-10-22 08:54:58 -0600 received badge  Notable Question (source)
2016-10-10 03:27:55 -0600 received badge  Popular Question (source)
2016-10-07 07:39:50 -0600 asked a question openstack version 2.3.0: swift and glance

Hi openstack community!

I intend to use swift as a backend for instances and there images in a test environment for openstack with Debian Jessie 8 but I failed with using swift for images of virtual machines. I assume I need to reconsider keystone but I am not sure and I don't know how. I tried to avoid to add many configuration files but if you need one, please let me know.

For configuring swift I used this manual: http://docs.openstack.org/project-ins...

I was able to verfiy that swift is working, after I used the ubuntu section (http://docs.openstack.org/project-ins...) instead of the debian section (http://docs.openstack.org/project-ins...).

Then I tried to find documentation for using swift as backend for virtual machines but I failed with this documentation: http://www.unixarena.com/2015/10/open...

I tried this to get the image into swift:

 openstack image create "cirros4swift"   --file cirros-0.3.4-x86_64-disk.img   --disk-format qcow2 --container-format bare   --public

And I get the message:

500 Internal Server Error The server has either erred or is incapable of performing the requested operation. (HTTP 500)

This is a part of glance-api.log while I tried to upload image to swift:

2016-10-07 13:42:01.785 29097 ERROR glance.api.v2.image_data   File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 617, in get_auth
2016-10-07 13:42:01.785 29097 ERROR glance.api.v2.image_data     auth_version=auth_version)
2016-10-07 13:42:01.785 29097 ERROR glance.api.v2.image_data   File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 543, in get_auth_keystone
2016-10-07 13:42:01.785 29097 ERROR glance.api.v2.image_data     raise ClientException('Authorization Failure. %s' % err)
2016-10-07 13:42:01.785 29097 ERROR glance.api.v2.image_data ClientException: Authorization Failure. Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-cdfbf316-8934-42ee-8429-5ef1ce112f74) (HTTP 404)
2016-10-07 13:42:01.785 29097 ERROR glance.api.v2.image_data 
2016-10-07 13:42:01.869 29097 ERROR glance.common.wsgi [req-86dfcf42-ad48-4e55-b5d2-72489783892c 4bcf960e75944ce6bd1dded437021a8e ca77a1956ef2426195fb3eb73785229e - - -] Caught error: Authorization Failure. Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-cdfbf316-8934-42ee-8429-5ef1ce112f74) (HTTP 404)

The message "The resource could not be found" I tried to understand but I was not able to find out what's the missing resource.

The glance-api.conf on the controller node for swift, where I tried additional configuration lines which contains swift, like swift_store_endpoint for example:

[DEFAULT]
default_store = swift
[cors]
[cors.subdomain]
[database]
connection = mysql+pymysql://glance:reinda@controller/glance
[glance_store]
stores = swift,file,http
default_store = swift
swift_store_auth_address = http://controller:35357/v3
swift_store_user = service:swift
swift_store_key = PASS
swift_store_create_container_on_put = True
swift_store_region = RegionOne
swift_store_endpoint = http://controller:8080/v1
swift_store_container = container1

[image_format]
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = glance
password = pass

[matchmaker_redis]
[oslo_concurrency]
lock_path = /var/lock/glance

[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
rabbit_host = localhost
rabbit_userid = guest
rabbit_password =

[oslo_policy]
[paste_deploy]
flavor = keystone

[profiler]
[store_type_location_strategy]
[task]
[taskflow_executor]

The message "The resource could not be found" let me conclude that ... (more)

2016-09-22 02:25:51 -0600 received badge  Popular Question (source)
2016-09-16 06:16:35 -0600 received badge  Self-Learner (source)
2016-09-16 06:16:35 -0600 received badge  Teacher (source)
2016-09-16 04:03:53 -0600 answered a question Launchin instance on version 2.3.0 with Linuxbridging failed

As requested...

Controller's ml2_conf.ini:

[DEFAULT]
[ml2]
type_drivers = flat,vlan
mechanism_drivers = linuxbridge
extension_drivers = port_security
[ml2_type_flat]
flat_networks = provider
[ml2_type_geneve]
[ml2_type_gre]
tunnel_id_ranges = 1:1000
[ml2_type_vlan]
[ml2_type_vxlan]
[securitygroup]
enable_security_group = True
enable_ipset = True

Coincidently I found another strange behaviour in controller's nova-api.log. It could not found the image:

2016-09-16 10:39:31.504 24666 INFO nova.api.openstack.wsgi [req-ed1a4af9-579a-483c-b499-2804410d2232 946e284be6374bf6a28f2b33e2083de7 741278786d82470f8bcfb57dfce5b3da - - -] HTTP exception thrown: Image not found.

I listed the image file like that:

. demo-openrc

and..

openstack image list

Give me ...

ID: 21eab172-c92d-467e-9591-f311d003d86e
Name: cirros

So I created/launch the instance:

openstack server create --flavor m1.tiny --image cirros   --nic net-id=6a3159e1-5f41-4d5f-9da0-befb214657f6 --security-group default   --key-name mykey provider-instance

The --image cirros is important here.

if I use the ID 21eab172-c92d-467e-9591-f311d003d86e instead of name cirros, this HTTP exception thrown: Image not found does not appear in controller's nova-api.log

That's the command launching with image's ID:

openstack server create --flavor m1.tiny --image 21eab172-c92d-467e-9591-f311d003d86e   --nic net-id=6a3159e1-5f41-4d5f-9da0-befb214657f6 --security-group default   --key-name mykey provider-instance

I had also some issue with neutron but to my opinion I should concentrate on nova-api's issues first...

EDIT:

Concentrating on controller's nova-api.log does not make it work.

Now I see a working instance and I now I will provide some information

Controller's ml2_conf.ini need this in the [ml2]-section:

tenant_network_types =

And I needed to edit /etc/init.d/neutron-server

The documentation provides information to start services like this:

 service neutron-server restart

But only this commando ...

 /etc/init.d/neutron-server restart

shows this information:

Plugin not recognized: please edit /etc/init.d/neutron-server to select the correct .ini file to load for your plugin

In line 17 of /etc/init.d/neutron-server I edit like that:

NEUTRON_PLUGIN_CONFIG="/etc/neutron/plugins/ml2/ml2_conf.ini"

But I still get this "Plugin not recognized"

In this startup-script I have found this:

if [ -z "${NEUTRON_PLUGIN_CONFIG}" ] ; then
        echo "Plugin not recognized: please edit /etc/init.d/neutron-server to select the correct .ini file to load for your plugin"
else
        DAEMON_ARGS="${DAEMON_ARGS} --config-file=${NEUTRON_PLUGIN_CONFIG}"
        DESC="${DESC} with ${NEUTRON_PLUGIN_NAME} plugin"
fi

And directly before that part I added:

NEUTRON_PLUGIN_CONFIG="/etc/neutron/plugins/ml2/ml2_conf.ini"

I restarted neutron-server again. Than I could finally launch an instance:

root@controller:/etc/neutron# openstack server list

+--------------------------------------+-------------------+--------+----------------------+

| ID | Name | Status | Networks |

+--------------------------------------+-------------------+--------+----------------------+

| 99a901d6-692e-442d-ad47-c6a0714a2431 | provider-instance | ACTIVE | provider=10.0.10.250 |

+--------------------------------------+-------------------+--------+----------------------+

YEAHHH!!!

2016-09-15 12:44:38 -0600 received badge  Student (source)
2016-09-15 08:56:12 -0600 asked a question Launchin instance on version 2.3.0 with Linuxbridging failed

Hello @ll,

since three weeks I follow the Openstack Guide for Debian Jessie several times , I could verify all components besides of launching an instance. I would be happy for any help and hint.

Following commando fails in this section of the guide in http://docs.openstack.org/draft/install-guide-debian/launch-instance-provider.html (http://docs.openstack.org/draft/insta...) :

openstack server create --flavor m1.tiny --image cirros \
  --nic net-id=6a3159e1-5f41-4d5f-9da0-befb214657f6 --security-group default \
  --key-name mykey provider-instance

While following command provides me the net-id

openstack network list
 ID-Column: 6a3159e1-5f41-4d5f-9da0-befb214657f6

I got following Controller's neutron-server.log ("Failed to bind port" in the ERROR line):

2016-09-15 12:48:16.360 17982 DEBUG oslo_messaging._drivers.amqpdriver [req-4f91af10-09dd-4ea3-a997-593593d009e7 d69bdb9aeb7348f8bc724af491528f85 0cf8cc992d124b5e889f887cad975259 - - -] CAST unique_id: 3679d71f240d4533aee73e996f8cbf46 FANOUT topic 'q-agent-notifier-security_group-update' _send /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:443
2016-09-15 12:48:16.371 17982 DEBUG neutron.plugins.ml2.managers [req-4f91af10-09dd-4ea3-a997-593593d009e7 d69bdb9aeb7348f8bc724af491528f85 0cf8cc992d124b5e889f887cad975259 - - -] Attempting to bind port 96fd72e7-764d-4155-9d21-218094394cf2 on host compute1 for vnic_type normal with profile  bind_port /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py:685
2016-09-15 12:48:16.372 17982 DEBUG neutron.plugins.ml2.managers [req-4f91af10-09dd-4ea3-a997-593593d009e7 d69bdb9aeb7348f8bc724af491528f85 0cf8cc992d124b5e889f887cad975259 - - -] Attempting to bind port 96fd72e7-764d-4155-9d21-218094394cf2 on host compute1 at level 0 using segments [{'segmentation_id': None, 'physical_network': u'provider', 'id': u'75147951-cc61-4acb-a69a-359fdbcc3b79', 'network_type': u'flat'}] _bind_port_level /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py:706
2016-09-15 12:48:16.372 17982 ERROR neutron.plugins.ml2.managers [req-4f91af10-09dd-4ea3-a997-593593d009e7 d69bdb9aeb7348f8bc724af491528f85 0cf8cc992d124b5e889f887cad975259 - - -] Failed to bind port 96fd72e7-764d-4155-9d21-218094394cf2 on host compute1 for vnic_type normal using segments [{'segmentation_id': None, 'physical_network': u'provider', 'id': u'75147951-cc61-4acb-a69a-359fdbcc3b79', 'network_type': u'flat'}]

Now some information and configuration files of the setup. Hoping it's not too much.

Openstack Version:

 openstack 2.3.0 (Newton?)

OS:

Debian 8 Jessie Backports

Network Type:

 Neutron Linux Bridging (ml2, no openvswitch)

Hypervisor:

 KVM

Environment:

Controller, Compute1

Controller's neutron.conf

[DEFAULT]
debug = True
auth_strategy = keystone
core_plugin = ml2
service_plugins =
allow_overlapping_ips = True
notify_nova_on_port_status_changes = True 
notify_nova_on_port_data_changes = True
rpc_backend = rabbit
[agent]
root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
[cors]
[cors.subdomain]
[database]
connection = mysql+pymysql://neutron:PASSWORD@controller/neutron
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = PASSWORD
[matchmaker_redis]
[nova]
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = PASSWORD
[oslo_concurrency]
lock_path = /var/lock/neutron
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = PASSWORD
[oslo_policy]
[quotas]
[ssl]

Controller's nova.conf

[DEFAULT]
enabled_apis = osapi_compute,metadata
my_ip = 10.0.0.204
pybasedir = /usr/lib/python2.7/dist-packages
state_path = /var/lib/nova
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
network_api_class = nova.network.neutronv2.api.API
default_floating_pool = ext-nat
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
security_group_api = neutron
rpc_backend = rabbit
auth_strategy = keystone
[api_database]
connection = mysql+pymysql://nova:PASSWORD@controller/nova_api
[barbican]
[cells]
[cinder]
[conductor]
[cors]
[cors.subdomain]
[database]
connection = mysql+pymysql://nova:PASSWORD@controller/nova
[ephemeral_storage_encryption]
[glance]
api_servers = http://controller:9292
[guestfs]
[hyperv]
[image_file_url]
[ironic]
[keymgr]
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name ...
(more)
2016-09-14 09:02:22 -0600 received badge  Popular Question (source)
2016-09-13 01:47:20 -0600 answered a question How to add correct admin endpoint for neutron

Now I am answering my own question. I have missed a listening port on 9696. I had add the "bind_port = 9696" statement in the default-Section [default] of /etc/neutron/neutron.conf on the controller and compute node and now verify operation with "neutron agent-list".

2016-09-09 03:07:44 -0600 asked a question How to add correct admin endpoint for neutron

Hello

for evaluating openstack I have followed the Debian-Installation with jessie-backports Repository (several times):

http://docs.openstack.org/draft/install-guide-debian/ (http://docs.openstack.org/draft/insta...)

But I failed to set up neutron correctly:

Verifying operations with "neutron ext-list --debug" gives me following input:

DEBUG: keystoneauth.identity.v3.base Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG: keystoneauth.session REQ: curl -g -i -X GET http://controller:9696/v2.0/extensions.json -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token:  {SHA1}1c0715c6801194e915870128b738d7bca850e5d7"
DEBUG: keystoneauth.session RESP: [500] Date: Fri, 09 Sep 2016 07:44:13 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 186 X-Openstack-Request-Id: req-c3d4c2da-d1e5-46cd-9edf-fbf32f49b827 
 RESP BODY: {"message": "The server has either erred or is incapable of performing the requested operation.<br /><br />\n\n\n", "code": "500 Internal Server Error", "title": "Internal Server Error"}

/var/log/syslog gives me following output, while executing "neutron ext-list":

Sep  9 07:58:25 controller neutron-server[3107]: 2016-09-09 07:58:25.455 3290 ERROR oslo_middleware.catch_errors EndpointNotFound: admin endpoint for identity service in regionOne region not found

So I think I need to add the admin endpoint:

All admin related endpoints I listed with "openstack endpoint list":

+----------------------------------+-----------+--------------+--------------+---------+-----------+
| ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                                       |
+----------------------------------+-----------+--------------+--------------+---------+-----------+
| 33ea6b67f0a14bfc89a08dac10dff163 | RegionOne | neutron      | network      | True    | admin     | http://controller:9696                    |
| 9ac5484cec4b466eb774caa952583940 | RegionOne | keystone     | identity     | True    | admin     | http://controller:35357/v3                |
| a81a2ccd21f34972bb9a41ff62c6dc1b | RegionOne | glance       | image        | True    | admin     | http://controller:9292                    |
| d0bef9c7d223426994ae8bc62df7e8b2 | RegionOne | nova         | compute      | True    | admin     | http://controller:8774/v2.1/%(tenant_id)s |

At the moment, I don't have any ideas to solve this issue. Any help is welcome.