Page MenuHomePhabricator

cloud vps: fix flavor g3.cores16.ram32.disk20 id 37ed9aaa-35b2-4141-8bc4-272ec8bbc303
Closed, ResolvedPublic

Description

It was reported to us during the Athens Wikimania Hackathon that the flavor id 37ed9aaa-35b2-4141-8bc4-272ec8bbc303 has a mistmatch on the CPU spec:

aborrero@cloudcontrol1007:~$ sudo wmcs-openstack flavor show 37ed9aaa-35b2-4141-8bc4-272ec8bbc303
+----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                      | Value                                                                                                                                                |
+----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-FLV-DISABLED:disabled   | False                                                                                                                                                |
| OS-FLV-EXT-DATA:ephemeral  | 0                                                                                                                                                    |
| access_project_ids         | None                                                                                                                                                 |
| description                | None                                                                                                                                                 |
| disk                       | 20                                                                                                                                                   |
| id                         | 37ed9aaa-35b2-4141-8bc4-272ec8bbc303                                                                                                                 |
| name                       | g3.cores16.ram32.disk20                                                                                                                              |
| os-flavor-access:is_public | True                                                                                                                                                 |
| properties                 | aggregate_instance_extra_specs:ceph='true', quota:disk_read_iops_sec='5000', quota:disk_total_bytes_sec='200000000', quota:disk_write_iops_sec='500' |
| ram                        | 32748                                                                                                                                                |
| rxtx_factor                | 1.0                                                                                                                                                  |
| swap                       |                                                                                                                                                      |
| vcpus                      | 8                                                                                                                                                    |
+----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+

Note the 16 cores in the name vs the 8 in the actual definition.

Event Timeline

Was this created with the cookbook? do you know?

Was this created with the cookbook? do you know?

no idea!

VMs using this flavor:

aborrero@cloudcontrol1007:~ $ sudo wmcs-openstack server list --all-projects --flavor 37ed9aaa-35b2-4141-8bc4-272ec8bbc303 -c ID -c Name -c Flavor 
+--------------------------------------+--------------------+-------------------------+
| ID                                   | Name               | Flavor                  |
+--------------------------------------+--------------------+-------------------------+
| a48d7096-f4b7-4656-b77a-136ed1ff69e4 | aio1               | g3.cores16.ram32.disk20 |
| 383c2871-0045-4ab1-845e-9d441687f842 | mimic-be-01        | g3.cores16.ram32.disk20 |
| 20cad354-abb5-4319-a9db-63ad4b38243b | trino-test-coord-1 | g3.cores16.ram32.disk20 |
| 07543105-1336-4f7f-ae04-5c7989a0bfb5 | larynx-be-01       | g3.cores16.ram32.disk20 |
| 14500d11-2a00-4c39-a93c-ededc30f31d8 | mwoffliner4        | g3.cores16.ram32.disk20 |
+--------------------------------------+--------------------+-------------------------+

Maybe there is a smarter way but this let me find the project names for those instances: (hat tip https://serverfault.com/a/1103316)

# for PROJECT in `openstack project list -c=Name -f=value` ; do echo "$PROJECT" >> server.csv ; openstack server list --flavor g3.cores16.ram32.disk20 -c=Name -c=Flavor --project $PROJECT --all -f=csv >> server.csv ; done
analytics
"Name","Flavor"
"trino-test-coord-1","g3.cores16.ram32.disk20"

mwoffliner
"mwoffliner4","g3.cores16.ram32.disk20"

testlabs
"aio1","g3.cores16.ram32.disk20"

text-to-speech
"mimic-be-01","g3.cores16.ram32.disk20"
"larynx-be-01","g3.cores16.ram32.disk20"

In order to avoid breaking existing VMs (despite them being the wrong size) I've created a new flavor g3.cores16.ram34.disk20 which is /slightly bigger/ than the one intended.

I've also marked the old flavor as disabled so no new VMs will be created using that flavor.

I'm not loving this solution but it should be at least moderately better. Subscribers, you should be able to resize your VMs to the new flavor.

Andrew reopened this task as Stalled.

Change #1047210 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[cloud/wmcs-cookbooks@main] migrate_server_to_ovs.py: support more source flavors

https://gerrit.wikimedia.org/r/1047210

Change #1047210 merged by jenkins-bot:

[cloud/wmcs-cookbooks@main] migrate_server_to_ovs.py: support more source flavors

https://gerrit.wikimedia.org/r/1047210

taavi subscribed.

Closing since this is being resolved with the new g4 flavors.