Instance could not be created/launched

Bug #1718190 reported by hassan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

During creation of instance through CLI or dashboard, i am getting Unexpected error in logs. please find command and other related openstack command outputs

Command and error
____________________

#openstack server create --flavor 73c42e28-0d38-4bc4-ad32-61b08474cdfa --image Roka-New --nic net-id=a973a522-3893-4f0a-a643-95cae029744a --security-group default --key-name mykey instance-1 --debug

POST call to compute for http://172.168.1.129:8774/v2/e6da88076d2847aca65e41b1d2093396/servers used request id req-c809d780-5615-4521-8647-bcbfe24b3f26
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.TypeError'> (HTTP 500) (Request-ID: req-c809d780-5615-4521-8647-bcbfe24b3f26)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 112, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/server.py", line 627, in take_action
    server = compute_client.servers.create(*boot_args, **boot_kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1416, in create
    **boot_kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 779, in _boot
    return_raw=return_raw, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 361, in _create
    resp, body = self.api.client.post(url, body=body)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 223, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 80, in request
    raise exceptions.from_response(resp, body, url, method)

other related command results
_____________________________

[root@controller ~]# . /home/admin-openrc

[root@controller ~]# openstack flavor list
+----+---------+-----+------+-----------+-------+-----------+
| ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public |
+----+---------+-----+------+-----------+-------+-----------+
| 0 | m1.nano | 64 | 1 | 0 | 1 | True |
+----+---------+-----+------+-----------+-------+-----------+

[root@controller log]# openstack project list
+----------------------------------+----------+
| ID | Name |
+----------------------------------+----------+
| 2cf19b21164e432fb84cfed281481737 | service |
| 82df21eecb184130b15fbf337e3fcfbf | Roka2017 |
| e6da88076d2847aca65e41b1d2093396 | demo |
| f045d9ebb6f64ef0bfa580b3bc7a312e | admin |
+----------------------------------+----------+

[root@controller log]# openstack network list
+--------------------------------------+----------+--------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+----------+--------------------------------------+
| 3cb5b804-f585-4455-92a4-360cefbb96f8 | outside | d014432c-ec96-48c8-9a83-adb69d18d943 |
| a973a522-3893-4f0a-a643-95cae029744a | demo-net | ec178c3e-8f99-428c-871c-3bb02c572d9d |
+--------------------------------------+----------+--------------------------------------+

[root@controller log]# openstack keypair list
+-------+-------------------------------------------------+
| Name | Fingerprint |
+-------+-------------------------------------------------+
| mykey | e9:74:b4:0b:bb:7f:68:5f:8d:ab:9e:ed:18:f5:7e:58 |
+-------+-------------------------------------------------+

[root@controller log]# openstack image list
+--------------------------------------+----------+--------+
| ID | Name | Status |
+--------------------------------------+----------+--------+
| c7f1f1b3-4ad8-4eb1-ac31-5e1171fa4593 | New-one | active |
| 3195c8b9-cddb-40cd-be63-e09117308a84 | RHEL7 | active |
| fdbb6f71-e22f-4fb0-bdf6-3826a0a729c8 | Roka-New | active |
+--------------------------------------+----------+--------+

[root@controller ~]# . /home/demo-openrc
[root@controller ~]# openstack flavor list

+--------------------------------------+-----------+------+------+-----------+-------+-----------+
| ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public |
+--------------------------------------+-----------+------+------+-----------+-------+-----------+
| 0 | m1.nano | 64 | 1 | 0 | 1 | True |
| 73c42e28-0d38-4bc4-ad32-61b08474cdfa | flavor-1G | 1024 | 1 | 0 | 1 | False |
+--------------------------------------+-----------+------+------+-----------+-------+-----------+

Revision history for this message
hassan (hassanelzahar) wrote :
Revision history for this message
hassan (hassanelzahar) wrote :

there was missed conf in /etc/nova/nova.conf related to glance part.

please check below

https://docs.openstack.org/ocata/install-guide-rdo/nova-controller-install.html#finalize-installation

Revision history for this message
Matt Riedemann (mriedem) wrote :

You didn't have [glance]/api_servers configured in nova.conf, that's shown by the stacktrace in the nova-api logs which shows this:

2017-09-18 14:10:00.256 3224 ERROR nova.api.openstack.extensions for api_server in CONF.glance.api_servers:
2017-09-18 14:10:00.256 3224 ERROR nova.api.openstack.extensions TypeError: 'NoneType' object is not iterable

Revision history for this message
Matt Riedemann (mriedem) wrote :

https://docs.openstack.org/ocata/install-guide-rdo/nova-controller-install.html#finalize-installation says:

    In the [glance] section, configure the location of the Image service API:

    [glance]
    # ...
    api_servers = http://controller:9292

So you missed a step.

Changed in nova:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.