Availability Zone for Host Aggregates is now mandatory

Bug #1357195 reported by Lin Hua Cheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Lin Hua Cheng

Bug Description

Create a Host Aggregate without specifying a Availability Zone results to error.

REQ: curl -i 'http://10.0.2.15:8774/v2/79a9eabda419419d869630b77d0c0b8f/os-aggregates' -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: 79a9eabda419419d869630b77d0c0b8f" -H "X-Auth-Token: {SHA1}9830df0b0e5ed172c13f680381c2f7dba1d483db" -d '{"aggregate": {"name": "ha1", "availability_zone": ""}}'
RESP: [400] {'date': 'Fri, 15 Aug 2014 04:35:45 GMT', 'content-length': '103', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-4689063c-f99f-45f0-b9a5-a5313fc66147'}
RESP BODY: {"badRequest": {"message": "Availability_zone has a minimum character requirement of 1.", "code": 400}}

Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :
Changed in horizon:
assignee: nobody → Lin Hua Cheng (lin-hua-cheng)
Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Unfortunately it only gives the generic message 'Unable to create host aggregate'.

Changed in horizon:
status: New → Confirmed
importance: Undecided → Medium
Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

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

commit 571d036bea33f14673387724464207ce8f7a8a07
Author: lin-hua-cheng <email address hidden>
Date: Thu Aug 14 21:58:54 2014 -0700

    Made Availability Zone mandatory for Aggregates

    Apply the same max_length validation on update form
    as well.
    Change-Id: I169f45e003cd228a62e253dca4fa2d79b905024f
    Closes-bug: 1357195

Changed in horizon:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in horizon:
milestone: none → juno-3
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-3 → 2014.2
Revision history for this message
Trung Trinh (trung-t-trinh) wrote :

Is this bug fix conflict with this bug fix in Nova https://bugs.launchpad.net/nova/+bug/1123468.
Please check!

Revision history for this message
Chris Friesen (cbf123) wrote :

This is no longer valid, the availability zone should not be required. See https://bugs.launchpad.net/horizon/+bug/1386076

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.