Ironic OSTF tests can not access endpoint

Bug #1525332 reported by Kyrylo Romanenko
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
MOS Ironic

Bug Description

1. Deployed cluster with the following configuration:
1 Controller + Ironic
1 Compute + Cinder
1 Base OS

Settings:
Compute - QEMU
Network - Neutron with VLAN segmentation
Storage Backends - Cinder LVM over iSCSI for volumes

2. Open OSTF tab and run Ironic-related tests:

- Check that Ironic can operate nodes - FAIL on first step:
Create Ironic node with fake driver.

- List Ironic entities
List chassis. - FAIL on first step:

Both tests failed with error:
ConnectionRefused: Error communicating with http://192.168.0.2:6385 [Errno 101] Network is unreachable

 http://192.168.0.2:6385 is endpoint for Ironic.
+-------------+----------------------------------+
| ironic | Value |
+-------------+----------------------------------+
| adminURL | http://192.168.0.2:6385 |
| id | 028c7d998cbb4ba9a88499858bbb15e6 |
| internalURL | http://192.168.0.2:6385 |
| publicURL | https://public.fuel.local:6385 |
| region | RegionOne |
+-------------+----------------------------------+

But I can successfully create ironic node and list nodes, chassis etc via CLI ironi client from controller node.

root@node-1:~# ironic node-create -d fake -n nodefake
+--------------+--------------------------------------+
| Property | Value |
+--------------+--------------------------------------+
| uuid | bf4005c8-e7ca-498c-8a7d-7d635104be3e |
| driver_info | {} |
| extra | {} |
| driver | fake |
| chassis_uuid | |
| properties | {} |
| name | nodefake |
+--------------+--------------------------------------+
root@node-1:~# ironic node-list
+--------------------------------------+----------+---------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+----------+---------------+-------------+--------------------+-------------+
| bf4005c8-e7ca-498c-8a7d-7d635104be3e | nodefake | None | None | available | False |
+--------------------------------------+----------+---------------+-------------+--------------------+-------------+

# ironic chassis-create
+-------------+--------------------------------------+
| Property | Value |
+-------------+--------------------------------------+
| uuid | 9e0632d2-747d-4e46-bc8c-f263c0369629 |
| description | None |
| extra | {} |
+-------------+--------------------------------------+

LOGS snapshot attached.

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  openstack_version: "2015.1.0-8.0"
  api: "1.0"
  build_number: "275"
  build_id: "275"
  fuel-nailgun_sha: "5ff92bf8e121390ccdfb53cd0c4a1503fb731f5a"
  python-fuelclient_sha: "19b89d9109d7ddffdc0eb4c4c0979485f3ca2146"
  fuel-agent_sha: "6356e90686efcc0f5aa1c6bfc108688975ce9650"
  fuel-nailgun-agent_sha: "a33a58d378c117c0f509b0e7badc6f0910364154"
  astute_sha: "48fd58676debcc85951db68df6d77c22daa55e52"
  fuel-library_sha: "f267761dff972295bc32b42934a13568a2d1725d"
  fuel-ostf_sha: "23b7ae2a1a57de5a3e1861ffb7805394ca339cc2"
  fuel-mirror_sha: "c66309976db831a4081e5e0064028d7c67014b2f"
  fuelmenu_sha: "761685b566af981479e7e0f3c3a5eede5a40400d"
  shotgun_sha: "a0bd06508067935f2ae9be2523ed0d1717b995ce"
  network-checker_sha: "a3534f8885246afb15609c54f91d3b23d599a5b1"
  fuel-upgrade_sha: "1e894e26d4e1423a9b0d66abd6a79505f4175ff6"
  fuelmain_sha: "95b4232a4faf0eb151fcc9aefca833392afa6cdf"

Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :
Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/python-ironicclient (openstack-ci/fuel-8.0/liberty)

Fix proposed to branch: openstack-ci/fuel-8.0/liberty
Change author: Anton Arefiev <email address hidden>
Review: https://review.fuel-infra.org/14644

Changed in mos:
status: New → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/python-ironicclient (openstack-ci/fuel-8.0/liberty)

Reviewed: https://review.fuel-infra.org/14644
Submitter: Pkgs Jenkins <email address hidden>
Branch: openstack-ci/fuel-8.0/liberty

Commit: bc94878af2827aefc361edc36590b33b1684e0a3
Author: Anton Arefiev <email address hidden>
Date: Mon Dec 14 10:03:05 2015

Use requests lib in HTTPClient

This change proposes switch to requests lib instead using
HTTPConnection and VerifiedHTTPSConnection, requests lib is
recommended for higher-level http client interface.

Also HTTPConnection can't work with API server behind proxy.

Change-Id: I0393aaf38e59bdfdefb0e00aaa514a3246bf639b
Closes-Bug: #1525332

Changed in mos:
status: In Progress → Fix Committed
tags: added: on-verification
Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :

Verified on ISO #429.
Environment created by sustem_test.sh script.
Cluster - success
Tests - success

tags: removed: on-verification
Changed in mos:
status: Fix Committed → Fix Released
tags: added: area-ostf
removed: ostf
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.