<class 'oslo_config.cfg.NoSuchOptError'>

Bug #1574988 reported by yyliang on 2016-04-26
48
This bug affects 7 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
High
Wenzhi Yu

Bug Description

#nova boot --flavor m1.tiny --image CirrOS031 --nic net-id=1476eeee-c17c-4215-af06-f46e2af3f6eb \
  --security-group default --key-name demo-key private-instance

ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'oslo_config.cfg.NoSuchOptError'> (HTTP 500) (Request-ID: req-496974bf-95e5-41b0-9359-f4f07ccc9594)

Wenzhi Yu (yuywz) wrote :

@yyliang, can you pls paste the related Nova API log?

Wenzhi Yu (yuywz) wrote :

Please add following information:
1. Version of your code;
2. Procedure to reproduce this issue;
3. Related error log.

Changed in nova:
status: New → Incomplete

At 2016-04-26 15:44:47, "Wenzhi Yu" <wenzhi_yu@163.com> wrote:
>Please add following information:
>1. Version of your code;
>2. Procedure to reproduce this issue;
>3. Related error log.
>
>** Changed in: nova
> Status: New => Incomplete
>
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https://bugs.launchpad.net/bugs/1574988
>
>Title:
> <class 'oslo_config.cfg.NoSuchOptError'>
>
>Status in OpenStack Compute (nova):
> Incomplete
>
>Bug description:
>
> #nova boot --flavor m1.tiny --image CirrOS031 --nic net-id=1476eeee-c17c-4215-af06-f46e2af3f6eb \
> --security-group default --key-name demo-key private-instance
>
> ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
> <class 'oslo_config.cfg.NoSuchOptError'> (HTTP 500) (Request-ID: req-496974bf-95e5-41b0-9359-f4f07ccc9594)
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/nova/+bug/1574988/+subscriptions

Wenzhi Yu (yuywz) on 2016-04-26
Changed in nova:
assignee: nobody → Wenzhi Yu (yuywz)
status: Incomplete → Confirmed

Fix proposed to branch: master
Review: https://review.openstack.org/310173

Changed in nova:
status: Confirmed → In Progress

Related to bug 1571839 Maybe talk with the assignee of that to get things merged together.

Changed in nova:
importance: Undecided → High

Reviewed: https://review.openstack.org/310173
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=2647f91ae97844a73176fc1c8663d9b186bdec1a
Submitter: Jenkins
Branch: master

commit 2647f91ae97844a73176fc1c8663d9b186bdec1a
Author: Wenzhi Yu <wenzhi_yu@163.com>
Date: Tue Apr 26 18:55:16 2016 +0800

    Fix NoSuchOptError when referring to conf.neutron.auth_plugin

    We already replaced 'auth_plugin' with 'auth_type'[1], now an
    oslo_config.cfg.NoSuchOptError will be threw up when referring to
    conf.neutron.auth_plugin.

    This commit replace the usage of conf.neutron.auth_plugin by
    conf.neutron.auth_type.

    [1]https://github.com/openstack/keystoneauth/commit/a56ed4218aef5a2e528aa682cea967e767dca923

    Change-Id: I0b72f278ba8e28508274079ff284042fb9ea3d64
    Closes-Bug: #1574988

Changed in nova:
status: In Progress → Fix Released
vance morris (jedi-holocron) wrote :

Hitting this myself today. This is a fresh Mitaka install (in progress) on Ubuntu 16.04, straight up out of the docs.

I don't have auth_plugin configured anywhere, however:

root@controller:~# openstack flavor list
+----+-----------+-------+------+-----------+-------+-----------+
| ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public |
+----+-----------+-------+------+-----------+-------+-----------+
| 0 | m1.nano | 64 | 1 | 0 | 1 | True |
| 1 | m1.tiny | 512 | 1 | 0 | 1 | True |
| 2 | m1.small | 2048 | 20 | 0 | 1 | True |
| 3 | m1.medium | 4096 | 40 | 0 | 2 | True |
| 4 | m1.large | 8192 | 80 | 0 | 4 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | 8 | True |
+----+-----------+-------+------+-----------+-------+-----------+
root@controller:~# openstack image list
+--------------------------------------+--------+--------+
| ID | Name | Status |
+--------------------------------------+--------+--------+
| 224e8dcc-da92-450e-ad97-83d238f5f7b7 | cirros | active |
+--------------------------------------+--------+--------+
root@controller:/etc# openstack server create --flavor m1.nano --image cirros --nic net-id=650c2ee3-3ac1-4cf0-9943-67f13fdc2d23 --security-group default --key-name mykey selfservice-instance
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'oslo_config.cfg.NoSuchOptError'> (HTTP 500) (Request-ID: req-cd08b4d2-bc15-47f8-a305-c88d29372f5a)

The nova-api.log has some unexpected INFO 404 messages about image and flavor not being found, though they are visible through the openstack cli.

I'm attaching the nova-api.log.

This issue was fixed in the openstack/nova 14.0.0.0b1 development milestone.

Matt Riedemann (mriedem) on 2016-07-13
tags: added: config neutron

Reviewed: https://review.openstack.org/344371
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=32a9d01c80ba13dd1321aef33073ad5a0b146fda
Submitter: Jenkins
Branch: stable/mitaka

commit 32a9d01c80ba13dd1321aef33073ad5a0b146fda
Author: Wenzhi Yu <wenzhi_yu@163.com>
Date: Tue Apr 26 18:55:16 2016 +0800

    Fix NoSuchOptError when referring to conf.neutron.auth_plugin

    Backporting to Mitaka

    We already replaced 'auth_plugin' with 'auth_type'[1], now an
    oslo_config.cfg.NoSuchOptError will be threw up when referring to
    conf.neutron.auth_plugin.

    This commit replace the usage of conf.neutron.auth_plugin by
    conf.neutron.auth_type.

    [1]https://github.com/openstack/keystoneauth/commit/a56ed4218aef5a2e528aa682cea967e767dca923

    Change-Id: I0b72f278ba8e28508274079ff284042fb9ea3d64
    Closes-Bug: #1574988
    Closes-Bug: #1604428
    (cherry picked from commit 2647f91ae97844a73176fc1c8663d9b186bdec1a)

tags: added: in-stable-mitaka

This issue was fixed in the openstack/nova 13.1.1 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers