Sahara: creating sahara templates

Bug #1524810 reported by magicboiz
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Medium
Denis Egorenko

Bug Description

Deploying of an Env with:
 - MOS6.1 (fully updated)
 - QEMU
 - GRE
 - Contrail plugin (2.1)
 - Ceph (glance+cinder)
 - Sahara

always fails creating sahara templates.

2015-12-10T10:39:20.134321+00:00 debug: Validation Error occurred: error_code=400, error_message=None is not of type 'string', error_name=VALIDATION_ERROR
2015-12-10T10:39:20.139334+00:00 info: 10.100.2.2 - - [10/Dec/2015 10:39:20] "POST /v1.1/51c94ec90c2245d5929f53709dd51584/node-group-templates HTTP/1.1" 400 239 0.007639

Here is a sanpshot: https://dl.dropboxusercontent.com/u/1425379/fuel-snapshot-2015-12-10_10-41-15.tar.xz

Revision history for this message
magicboiz (magicboiz) wrote :
Revision history for this message
Denis Egorenko (degorenko) wrote :

The first question which i have, is 2.1 version supported by MOS-6.1? As i see here:

https://www.mirantis.com/products/openstack-drivers-and-plugins/fuel-plugins/

only 1.0.1 and 2.0 supported by MOS6.1

Revision history for this message
magicboiz (magicboiz) wrote :

I theory, yes it is (according to scamp, Oleksandr Martsyniuk)

Version 2.0.0 – Compatible with Juniper Contrail 2.20, and OpenContrail R2.20, included in the plugin package.

Version 2.1.0 - Compatible with Mirantis Fuel 6.1 and Juniper Contrail 2.21

Revision history for this message
Denis Egorenko (degorenko) wrote :

ok, thank you for provided information. I will try to find out, where is problem.

Changed in fuel:
assignee: nobody → Denis Egorenko (degorenko)
status: New → Confirmed
Revision history for this message
Denis Egorenko (degorenko) wrote :
Download full text (3.2 KiB)

I've reproduced this bug.

root@node-1:~# neutron --debug net-list
DEBUG: keystoneclient.session REQ: curl -i -X GET http://192.168.0.2:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: keystoneclient.session RESP: [200] CaseInsensitiveDict({'date': 'Fri, 11 Dec 2015 17:33:11 GMT', 'vary': 'X-Auth-Token', 'content-length': '421', 'content-type': 'application/json', 'connection': 'close'})
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://192.168.0.2:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('csv = cliff.formatters.commaseparated:CSVLister')
DEBUG: stevedore.extension found extension EntryPoint.parse('yaml = clifftablib.formatters:YamlFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('json = clifftablib.formatters:JsonFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('html = clifftablib.formatters:HtmlFormatter')
DEBUG: neutronclient.neutron.v2_0.network.ListNetwork get_data(Namespace(columns=[], fields=[], formatter='table', max_width=0, page_size=None, quote_mode='nonnumeric', request_format='json', show_details=False, sort_dir=[], sort_key=[]))
DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://192.168.0.2:5000/v2.0/tokens
DEBUG: keystoneclient.session REQ: curl -i -X GET http://192.168.0.2:9696/v2.0/networks.json -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: TOKEN_REDACTED"
DEBUG: keystoneclient.session RESP: [200] CaseInsensitiveDict({'date': 'Fri, 11 Dec 2015 17:33:12 GMT', 'connection': 'close', 'content-type': 'application/json; charset=UTF-8', 'content-length': '16', 'x-openstack-request-id': 'req-a0a6ac04-5ec2-495c-93cd-3edeaf573e81'})
RESP BODY: {"networks": []}

DEBUG: keystoneclient.session REQ: curl -i -X GET http://192.168.0.2:9696/v2.0/subnets.json?fields=id&fields=cidr -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: TOKEN_REDACTED"
DEBUG: keystoneclient.session RESP: [200] CaseInsensitiveDict({'date': 'Fri, 11 Dec 2015 17:33:12 GMT', 'connection': 'close', 'content-type': 'application/json; charset=UTF-8', 'content-length': '15', 'x-openstack-request-id': 'req-a3bc51d3-7fa3-4239-88a2-ad6fffa4bdbe'})
RESP BODY: {"subnets": []}

At the moment, when sahara_templates is start working we don't have neutron networks, when Contrail plugin is enabled and that's why we have None in request to Sahara API.

As workaround you can remove these lines:

https://github.com/openstack/fuel-library/blob/stable/6.1/deployment/puppet/osnailyfacter/modular/sahara/sahara.pp#L66-L76

path on master node: /etc/puppet/modules/osnailyfacter/modular/sahara/sahara.pp

It will dis...

Read more...

Revision history for this message
magicboiz (magicboiz) wrote :

The workaound seems to do the job :)

Changed in fuel:
milestone: none → 8.0
importance: Undecided → Medium
Ilya Kutukov (ikutukov)
tags: added: area-mos
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/6.1)

Fix proposed to branch: stable/6.1
Review: https://review.openstack.org/258575

Revision history for this message
magicboiz (magicboiz) wrote :

Hi Denis,

after reading the patchset.... wouldn't be possible to pospone the sahara template deployment after the contrail plugin installation/configuration?

Revision history for this message
Denis Egorenko (degorenko) wrote :

Hi,

unfortunately no, it is not possible. Only if you will run sahara modular task manually again on primary controller.

Revision history for this message
magicboiz (magicboiz) wrote :

you mean something manual like "puppet apply /etc/puppet/modules/osnailyfacter/modular/sahara/sahara.pp" ??

Revision history for this message
Denis Egorenko (degorenko) wrote :

Yes, indeed.

Changed in fuel:
milestone: 8.0 → 6.1-updates
Revision history for this message
Roman Sokolkov (rsokolkov) wrote :

Affects MOS7.0 with Contrail 3.0 plugin.

Revision history for this message
Vitaly Sedelnik (vsedelnik) wrote :

Won't Fix for 6.1-updates because of Medium importance.

Changed in fuel:
status: Confirmed → Won't Fix
tags: added: wontfix-low
Revision history for this message
kranthi kiran guttikonda (kranthi-guttikonda9) wrote :

Do you have the same fix available for Fuel 7.0 updates? The same problem found with Fuel 7.0 with Sahara and Contrail together.

Revision history for this message
Denis Egorenko (degorenko) wrote :

kranthi kiran, i guess you can use same fix as for 6.1:

https://review.openstack.org/#/c/258575

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (stable/6.1)

Change abandoned by Denis Egorenko (<email address hidden>) on branch: stable/6.1
Review: https://review.openstack.org/258575
Reason: Marked as Won't fix

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.