← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1758260] [NEW] Create instance throws TypeError: argument of type 'NoneType' is not iterable in nova-conductor

 

Public bug reported:

Installed a brand new Openstack Queenson Ubuntu 16.04 following the
OpenStack documentation.

I have 1 controller and 1 compute (kvm) nodes so far, no storage yet.
All are registered properly:

```
$ sudo -u nova nova-manage --use-json cell_v2 list_cells
+-------+--------------------------------------+--------------------------+------------------------------------------------+
|  Name |                 UUID                 |      Transport URL       |              Database Connection               |
+-------+--------------------------------------+--------------------------+------------------------------------------------+
| cell0 | 00000000-0000-0000-0000-000000000000 |          none:/          | mysql+pymysql://nova:****@localhost/nova_cell0 |
| cell1 | d30a8c57-dad1-406f-9ff1-50d93dc70b2b | rabbit://openstack:****@ |    mysql+pymysql://nova:****@localhost/nova    |
+-------+--------------------------------------+--------------------------+------------------------------------------------+
```
And:
```
sudo -u nova nova-manage cell_v2 list_hosts
+-----------+--------------------------------------+----------+
| Cell Name |              Cell UUID               | Hostname |
+-----------+--------------------------------------+----------+
|   cell1   | d30a8c57-dad1-406f-9ff1-50d93dc70b2b | grunt01  |
+-----------+--------------------------------------+----------+
```

When I create an instance:

```
$ openstack server create --flavor m1.nano --image cirros \
  --nic net-id=$(openstack network show demo -c id -f value) \
  --security-group default
  --key-name xxxx
  first -test
```

The image gets created but stays stuck in the BUILD state.

The logs on the compute noad (/var/log/nova-compute.log) never get any
entry written.

The version for nova is:

```
$ dpkg -l | grep nova
ii  nova-api                            2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute - API frontend
ii  nova-common                         2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute - common files
ii  nova-conductor                      2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute - conductor service
ii  nova-consoleauth                    2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute - Console Authenticator
ii  nova-novncproxy                     2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute - NoVNC proxy
ii  nova-placement-api                  2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute - placement API frontend
ii  nova-scheduler                      2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute - virtual machine scheduler
ii  python-nova                         2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute Python libraries
ii  python-novaclient                   2:9.1.1-0ubuntu1~cloud0                    all          client library for OpenStack Compute API - Python 2.7
```

logs and config attached (sosreport)

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: queens

** Attachment added: "logs & config (sosreport)"
   https://bugs.launchpad.net/bugs/1758260/+attachment/5087784/+files/sosreport-warchief-20180323162005.tar.xz

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1758260

Title:
  Create instance throws TypeError: argument of type 'NoneType' is not
  iterable in nova-conductor

Status in OpenStack Compute (nova):
  New

Bug description:
  Installed a brand new Openstack Queenson Ubuntu 16.04 following the
  OpenStack documentation.

  I have 1 controller and 1 compute (kvm) nodes so far, no storage yet.
  All are registered properly:

  ```
  $ sudo -u nova nova-manage --use-json cell_v2 list_cells
  +-------+--------------------------------------+--------------------------+------------------------------------------------+
  |  Name |                 UUID                 |      Transport URL       |              Database Connection               |
  +-------+--------------------------------------+--------------------------+------------------------------------------------+
  | cell0 | 00000000-0000-0000-0000-000000000000 |          none:/          | mysql+pymysql://nova:****@localhost/nova_cell0 |
  | cell1 | d30a8c57-dad1-406f-9ff1-50d93dc70b2b | rabbit://openstack:****@ |    mysql+pymysql://nova:****@localhost/nova    |
  +-------+--------------------------------------+--------------------------+------------------------------------------------+
  ```
  And:
  ```
  sudo -u nova nova-manage cell_v2 list_hosts
  +-----------+--------------------------------------+----------+
  | Cell Name |              Cell UUID               | Hostname |
  +-----------+--------------------------------------+----------+
  |   cell1   | d30a8c57-dad1-406f-9ff1-50d93dc70b2b | grunt01  |
  +-----------+--------------------------------------+----------+
  ```

  When I create an instance:

  ```
  $ openstack server create --flavor m1.nano --image cirros \
    --nic net-id=$(openstack network show demo -c id -f value) \
    --security-group default
    --key-name xxxx
    first -test
  ```

  The image gets created but stays stuck in the BUILD state.

  The logs on the compute noad (/var/log/nova-compute.log) never get any
  entry written.

  The version for nova is:

  ```
  $ dpkg -l | grep nova
  ii  nova-api                            2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute - API frontend
  ii  nova-common                         2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute - common files
  ii  nova-conductor                      2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute - conductor service
  ii  nova-consoleauth                    2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute - Console Authenticator
  ii  nova-novncproxy                     2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute - NoVNC proxy
  ii  nova-placement-api                  2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute - placement API frontend
  ii  nova-scheduler                      2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute - virtual machine scheduler
  ii  python-nova                         2:17.0.0-0ubuntu1~cloud0                   all          OpenStack Compute Python libraries
  ii  python-novaclient                   2:9.1.1-0ubuntu1~cloud0                    all          client library for OpenStack Compute API - Python 2.7
  ```

  logs and config attached (sosreport)

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1758260/+subscriptions


Follow ups