[Launch Instance Fix] Security Group error when launching an instance with new wizard

Bug #1445235 reported by Mohan Seri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Travis Tripp
Kilo
Fix Released
High
David Lyle

Bug Description

With Nova Networking (not Neutron), Creating an instance with new launch instance Errors with "Error: unable to create the server."

It appears to be that Nova expects security group name while neutron expects security group ID.

with
LOG.error("******************** -> %s" % security_groups) before line 578 in nova.py

Here is the Log:

******************** -> [3]
REQ: curl -g -i 'http://10.0.2.15:8774/v2/f013e957495e47118dce6c0a87bd4690/servers' -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: f013e957495e47118dce6c0a87bd4690" -H "X-Auth-Token: {SHA1}0ed0cb9ce78afdde4aedde8d415b3962fb3b782b" -d '{"server": {"name": "ins_111", "imageRef": "c62db24e-0735-45bc-a6d7-0a3896b93c54", "availability_zone": "nova", "key_name": "KP_1", "flavorRef": "42", "OS-DCF:diskConfig": "AUTO", "max_count": 1, "min_count": 1, "security_groups": [{"name": 3}]}}'
RESP: [400] {'date': 'Thu, 16 Apr 2015 21:55:30 GMT', 'connection': 'keep-alive', 'content-type': 'application/json; charset=UTF-8', 'content-length': '116', 'x-compute-request-id': 'req-92aa65af-603b-4fec-afad-e7e7edab9839'}
RESP BODY: null

[16/Apr/2015 21:55:30] "POST /api/nova/servers/ HTTP/1.1" 400 140

Changed in horizon:
assignee: nobody → Travis Tripp (travis-tripp)
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
status: Confirmed → In Progress
tags: added: kilo-rc-potential
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/174636
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=b7de0333b13f73f6a66380623d7579373709c756
Submitter: Jenkins
Branch: master

commit b7de0333b13f73f6a66380623d7579373709c756
Author: Travis Tripp <email address hidden>
Date: Tue Apr 14 05:05:28 2015 -0600

    [Launch Instance Fix] Security Group Nova Net

    When nova networking is enabled, the input to security
    groups needs to be by name. When neutron, it needs
    to be by id. This solves that issues.

    Change-Id: If32671af90facd16e60caa33ed84ba7c9796ad11
    Closes-Bug: #1445235

Changed in horizon:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/174995

Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

Adding L-1 as milestone, although would be nice for K-RC2

Changed in horizon:
milestone: none → liberty-1
importance: Undecided → High
Thierry Carrez (ttx)
tags: removed: kilo-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/kilo)

Reviewed: https://review.openstack.org/174995
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=11eb195c183fe5c4cbc3803c15dea709ffe7dbb0
Submitter: Jenkins
Branch: stable/kilo

commit 11eb195c183fe5c4cbc3803c15dea709ffe7dbb0
Author: Travis Tripp <email address hidden>
Date: Tue Apr 14 05:05:28 2015 -0600

    [Launch Instance Fix] Security Group Nova Net

    When nova networking is enabled, the input to security
    groups needs to be by name. When neutron, it needs
    to be by id. This solves that issues.

    Change-Id: If32671af90facd16e60caa33ed84ba7c9796ad11
    Closes-Bug: #1445235
    (cherry picked from commit b7de0333b13f73f6a66380623d7579373709c756)

Revision history for this message
Matthias Runge (mrunge) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)
Download full text (6.3 KiB)

Reviewed: https://review.openstack.org/179289
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=aba74d04a530fb6c251c15037da96b7a93b83a7e
Submitter: Jenkins
Branch: master

commit 56d5683c8c49558ae22200bc01ec87ea83144003
Author: Akihiro Motoki <email address hidden>
Date: Thu Apr 23 06:58:49 2015 +0900

    Import translations from Transifex for Juno

    * Import ~100% completed translations
      (translations available for 12 languages)
    * Delete incomplete languages
    * Update language list in openstack_dashboard settings.py

    Change-Id: Ie65227e510d95504ed94fb35f0f7273739759601

commit 89d9f46750a7506d6910ae792c14ad47feaf53c3
Author: Doug Fish <email address hidden>
Date: Tue Apr 14 15:05:41 2015 -0500

    Format numbers in a locale sensitive manner

    Create Volume, Create Snapshot, Extend Volume and
    Flavors and Quota all fail to format numbers in a
    locale sensitive manner. This patch changes the code to
    use the intcomma filter before quota, instead of after. Once
    quota has added text the number can no longer be formatted.

    (Pulled from gate, can't pass checks)

    Change-Id: Id9749d9b25d93185b917708b85471e6f765033e2
    Closes-Bug: 1314801
    (cherry picked from commit 0872b4a40334a6df863f88e5aa56b31363aff28e)

commit a1ac5936211cc134a6fd5246007889a5149a18dd
Author: Akihiro Motoki <email address hidden>
Date: Sat Apr 18 19:53:06 2015 +0900

    update .tx/config to match Kilo Transifex resources

    (Pulled from gate, can't pass checks)

    Change-Id: I167d7787d3096c35a9ad73634e69058306731e44

commit 2e1216136a93a1c2129d9de05fcbbd032fae76e2
Author: OpenStack Proposal Bot <email address hidden>
Date: Thu Apr 23 15:48:09 2015 +0000

    Updated from global requirements

    Change-Id: I5602a6489684db95934130f3ce83c8eb37af2d3d

commit 624a85c7eee4e4fb4f88ccc8bd52caa6c0423e89
Author: lin-hua-cheng <email address hidden>
Date: Wed Apr 22 14:45:26 2015 -0700

    Initialize variable 'networks' before referencing

    Fixes the possible UnboundLocalError on the utility class.

    Change-Id: I52d27f90a583f1216a927147d1bd414c5f866608
    Closes-Bug: #1444421
    (cherry picked from commit 2e4996d2d220df0ae36a863fe694706e6f7aeb40)

commit 5c1604275bfbe621e5e168f8ba1f937d308d6ab8
Author: Janet Yu <email address hidden>
Date: Fri Mar 13 13:50:42 2015 -0700

    Fix addition of plugin panel to panel group

    Revert fix from bug #1329050, which adds a plugin panel to its dashboard's
    class. Adding a plugin panel to a dashboard whose class has its panels defined
    in a tuple will fail because the new plugin cannot be appended to the tuple.
    The code errors out before the panel gets added to the dashboard's panel list.
    However, at this point, the panel has already been registered with the
    dashboard. This causes Dashboard.get_panels() to see the panel in its registry
    but not in its panel groups. Consequently, the panel gets put in the "Other"
    panel group instead of its configured one, as described in bug #1378558.

    By not adding the the plugin panel to its dashboard's class, the panel gets
    a...

Read more...

Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: liberty-1 → 8.0.0
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.