create aggregate
Bug #1219693 reported by
Xurong Yang
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
wingwj |
Bug Description
Create aggregate fails when input metadata "availability_zone" length >255(models.py value = Column(String(255), nullable=
Changed in nova: | |
assignee: | nobody → Jake Liu (jake-liu) |
tags: | added: db |
Changed in nova: | |
assignee: | Jake Liu (jake-liu) → XuRong Yang (idopra) |
Changed in nova: | |
status: | Triaged → In Progress |
Changed in nova: | |
assignee: | XuRong Yang (idopra) → wanghong (w-wanghong) |
Changed in nova: | |
assignee: | wanghong (w-wanghong) → nobody |
Changed in nova: | |
assignee: | nobody → wingwj (wingwj) |
Changed in nova: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-2 → 2014.2 |
To post a comment you must log in.
Hi Frank, just did some test according to your test steps but did not reproduce this.
From my test you can see that once the length of metadata value exceeds 255, then the value will be truncated to 255 without exception, this seems to be a design behavior for database behavior.
Please show your comments if any. Thanks!
-- Jake
jake@jake1:~$ nova aggregate- set-metadata 2 availability_ zone=xxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxcccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd dddd python2. 7/dist- packages/ gobject/ constants. py:24: Warning: g_boxed_ type_register_ static: assertion `g_type_from_name (name) == 0' failed -----+- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----+-- -----+- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---+ -----+- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----+-- -----+- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---+ xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccc. ..
/usr/lib/
import gobject._gobject
Aggregate 2 has been successfully updated.
+----+-
| Id | Name | Availability Zone | Hosts | Metadata |
+----+-
| 2 | agg1 | xxxxxxxxxxxxxxx