← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1635446] Re: Magnum fails to create fedora minions

 

The instance is serialized into the build_requests table:

https://github.com/openstack/nova/blob/14.0.1/nova/db/sqlalchemy/api_models.py#L243

>From the nova-api log attached to this bug, it looks like the user_data
is blowing it up:

https://github.com/openstack/nova/blob/14.0.1/nova/db/sqlalchemy/models.py#L281

Looking at the models, the build_requests.instance column is Text and
the instances.user_data is MediumText, so that needs to change.

http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html

** Changed in: magnum
       Status: New => Invalid

** Summary changed:

- Magnum fails to create fedora minions
+ DBError storing build_requests.instance with user_data too long

** Changed in: nova
       Status: New => Triaged

** Changed in: nova
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1635446

Title:
  DBError storing build_requests.instance with user_data too long

Status in Magnum:
  Invalid
Status in OpenStack Compute (nova):
  Triaged

Bug description:
  The cluster goes to CREATE_FAILED

  # magnum $AUTH cluster-show k8s-cluster-fedora
  +---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  | Property            | Value                                                                                                                                                                                                                                                                                                                      |
  +---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  | status              | CREATE_FAILED                                                                                                                                                                                                                                                                                                              |
  | cluster_template_id | cd70e24d-717c-40b4-8bcf-fd56d0cf23bb                                                                                                                                                                                                                                                                                       |
  | uuid                | 5df0d9f3-de35-4557-881c-efac6bc7e489                                                                                                                                                                                                                                                                                       |
  | stack_id            | 497e8905-f425-454b-8f77-d87ff41cc7dd                                                                                                                                                                                                                                                                                       |
  | status_reason       | Resource CREATE failed: ClientException: resources.kube_minions.resources[0].resources.kube-minion: Unexpected API Error. Please report this at http: //bugs.launchpad.net/nova/ and attach the Nova API log if possible.                                                                                                  |
  |                     | <class 'oslo_db.exception.DBError'> (HTTP 500) (Request-ID: req-c064df25-a47c-439e-bdc5-99e1cfbd44c5)                                                                                                                                                                                                                      |
  | created_at          | 2016-10-20T22:26:28+00:00                                                                                                                                                                                                                                                                                                  |
  | name                | k8s-cluster-fedora                                                                                                                                                                                                                                                                                                         |
  | updated_at          | 2016-10-20T22:28:00+00:00                                                                                                                                                                                                                                                                                                  |
  | discovery_url       | https://discovery.etcd.io/703919614eb4688507382ff891fa86a9                                                                                                                                                                                                                                                                 |
  | faults              | {'0': "ClientException: resources[0].resources.kube-minion: Unexpected API Error. Please report this at http: //bugs.launchpad.net/nova/ and attach the Nova API log if possible.                                                                                                                                          |
  |                     | <class 'oslo_db.exception.DBError'> (HTTP 500) (Request-ID: req-c064df25-a47c-439e-bdc5-99e1cfbd44c5)", 'kube_minions': "ClientException: resources.kube_minions.resources[0].resources.kube-minion: Unexpected API Error. Please report this at http: //bugs.launchpad.net/nova/ and attach the Nova API log if possible. |
  |                     | <class 'oslo_db.exception.DBError'> (HTTP 500) (Request-ID: req-c064df25-a47c-439e-bdc5-99e1cfbd44c5)", 'kube-minion': "ClientException: resources.kube-minion: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.                                       |
  |                     | <class 'oslo_db.exception.DBError'> (HTTP 500) (Request-ID: req-c064df25-a47c-439e-bdc5-99e1cfbd44c5)"}                                                                                                                                                                                                                    |
  | api_address         | https://10.240.127.136:6443                                                                                                                                                                                                                                                                                                |
  | coe_version         | v1.2.0                                                                                                                                                                                                                                                                                                                     |
  | master_addresses    | ['10.240.127.136']                                                                                                                                                                                                                                                                                                         |
  | create_timeout      | 18000                                                                                                                                                                                                                                                                                                                      |
  | node_addresses      | ['10.240.127.141']                                                                                                                                                                                                                                                                                                         |
  | master_count        | 1                                                                                                                                                                                                                                                                                                                          |
  | container_version   | 1.9.1                                                                                                                                                                                                                                                                                                                      |
  | node_count          | 1                                                                                                                                                                                                                                                                                                                          |
  +---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

  nova-api logs attached

To manage notifications about this bug go to:
https://bugs.launchpad.net/magnum/+bug/1635446/+subscriptions