Task[connectivity_tests/] failed due to mirror connection issue

Bug #1654967 reported by Anton Chevychalov
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Critical
Vladimir Kuklin
Mitaka
Fix Released
Critical
Vladimir Kuklin
Newton
Fix Released
Critical
Vladimir Kuklin
Ocata
Fix Committed
Critical
Vladimir Kuklin

Bug Description

Failed BVT:
===========
https://product-ci.infra.mirantis.net/job/9.x.main.ubuntu.bvt_2/741/

Failed task:
============
AssertionError: Task 'deploy' has incorrect status. error != ready, 'Deployment has failed. All nodes are finished. Failed tasks: Task[connectivity_tests/3], Task[connectivity_tests/5], Task[connectivity_tests/6] Stopping the deployment process!'

Astuted.log
===========
2017-01-09 07:28:45 INFO [29312] Casting message to Nailgun:
{"method"=>"deploy_resp",
 "args"=>
  {"task_uuid"=>"5c75c8c9-c6ad-4520-b01f-559eed992feb",
   "status"=>"error",
   "progress"=>100,
   "error"=>
    "All nodes are finished. Failed tasks: Task[connectivity_tests/3], Task[connectivity_tests/5], Task[connectivity_tests/6] Stopping the deployment process!"}}

Puppet.log on node-6:
=====================

2017-01-09 07:24:43 +0000 Puppet (err): ERROR: Unable to fetch url 'http://mirror.seed-cz1.fuel-infra.org/pkgs/snapshots/ubuntu-2017-01-09-030059/', error 'execution expired'. Please verify node connectivity to t
his URL, or remove it from the settings page if it is invalid. on node node-6.test.domain.local
/etc/puppet/modules/osnailyfacter/lib/puppet/parser/functions/url_available.rb:95:in `rescue in fetch'
/etc/puppet/modules/osnailyfacter/lib/puppet/parser/functions/url_available.rb:83:in `fetch'
/etc/puppet/modules/osnailyfacter/lib/puppet/parser/functions/url_available.rb:106:in `block (4 levels) in <top (required)>'

Possible reason:
================
Mirror was not in reachable state.

Changed in fuel:
importance: Undecided → Critical
milestone: none → 9.2
Revision history for this message
Nastya Urlapova (aurlapova) wrote :

Compute nodes do not have connectivity to repos.

Revision history for this message
Nastya Urlapova (aurlapova) wrote :

Repos are available on master and controller nodes.

tags: added: swarm-blocker
Changed in fuel:
assignee: nobody → Georgy Kibardin (gkibardin)
status: New → Confirmed
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Georgy Kibardin (gkibardin) wrote :

The reason is that on nodes where there is no br-ex interface default route is setup via br-mgmt for which there is no NAT to the external network.

Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

This is an expected configuration by default since 6.x releases. The default route for compute nodes is configured through vrouter that is a network namespace called vrouter which is started on one of the controller nodes. NAT is configured within this namespace, so I would look into forwarding or networking config on the host node for tests.

Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

Moreover, the nodes that have connectivity check failing are controller nodes which actually have br-ex interface

Revision history for this message
Georgy Kibardin (gkibardin) wrote :

All failing nodes are computes.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/417952

Changed in fuel:
assignee: Georgy Kibardin (gkibardin) → Vladimir Kuklin (vkuklin)
Revision history for this message
Vladimir Kuklin (vkuklin) wrote : Re: BVT fail due to mirror connection issue

Okay, I found the issue - it was the regression as we flush default route that is set by vip__vrouter_pub resource

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/417968

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/417969

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/mitaka)

Reviewed: https://review.openstack.org/417968
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=9923c0970f64a7299a5697a9a850e48b4fac8f91
Submitter: Jenkins
Branch: stable/mitaka

commit 9923c0970f64a7299a5697a9a850e48b4fac8f91
Author: Vladimir Kuklin <email address hidden>
Date: Mon Jan 9 19:22:13 2017 +0300

    Fix vrouter route flush

    1. Do not set routing on status command - this is useless and
    destructive

    2. Save default routes into a separate file and restore them
    after flush

    Change-Id: Ia128979920e054343b2ac05e437683772c81731a
    Closes-bug: #1654967

Revision history for this message
Ekaterina Shutova (eshutova) wrote : Re: BVT fail due to mirror connection issue

Verified on 9.2 snapshot #742.
Latest runs with fix are passed: https://product-ci.infra.mirantis.net/job/9.x.main.ubuntu.bvt_2/745/testReport/

tags: added: on-verification
tags: removed: on-verification
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-library (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/418934

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-library (stable/mitaka)

Related fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/418935

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-library (stable/newton)

Related fix proposed to branch: stable/newton
Review: https://review.openstack.org/418937

Revision history for this message
Nastya Urlapova (aurlapova) wrote : Re: BVT fail due to mirror connection issue

New failures on 9.2 snapshot #748:
https://product-ci.infra.mirantis.net/job/9.x.system_test.ubuntu.env_customizations_check/104/testReport/(root)/customizations_check_env/customizations_check_env/
https://product-ci.infra.mirantis.net/job/9.x.system_test.ubuntu.bvt_ubuntu_bootstrap/172/testReport/(root)/reset_on_ready_ubuntu_bootstrap/reset_on_ready_ubuntu_bootstrap/
https://product-ci.infra.mirantis.net/job/9.x.system_test.ubuntu.bvt_ubuntu_bootstrap/172/testReport/(root)/deploy_with_two_ubuntu_bootstraps/deploy_with_two_ubuntu_bootstraps/
https://product-ci.infra.mirantis.net/job/9.x.system_test.ubuntu.services_reconfiguration_thread_2/169/testReport/(root)/two_clusters_reconfiguration/two_clusters_reconfiguration/
Dima Ukov found error in logs:
>>>
2017-01-12 01:44:30 +0000 Scope(Class[Osnailyfacter::Netconfig::Connectivity_tests]) (notice): MODULAR: netconfig/connectivity_tests.pp
2017-01-12 01:45:30 +0000 Puppet (err): ERROR: Unable to fetch url 'http://mirror.seed-cz1.fuel-infra.org/pkgs/snapshots/ubuntu-2017-01-11-030059/', error 'execution expired'. Please verify node connectivity to this URL, or remove it from the settings page if it is invalid. on node node-2.test.domain.local
/etc/puppet/modules/osnailyfacter/lib/puppet/parser/functions/url_available.rb:95:in `rescue in fetch'
/etc/puppet/modules/osnailyfacter/lib/puppet/parser/functions/url_available.rb:83:in `fetch'
/etc/puppet/modules/osnailyfacter/lib/puppet/parser/functions/url_available.rb:106:in `block (4 levels) in <top (required)>'
2017-01-12 01:45:30 +0000 Puppet (err): ERROR: Unable to fetch url 'http://mirror.seed-cz1.fuel-infra.org/pkgs/snapshots/ubuntu-2017-01-11-030059/', error 'execution expired'. Please verify node connectivity to this URL, or remove it from the settings page if it is invalid.

summary: - BVT fail due to mirror connection issue
+ Task[connectivity_tests/] failed due to mirror connection issue
Revision history for this message
Alexander Kurenyshev (akurenyshev) wrote :

And again https://product-ci.infra.mirantis.net/job/9.x.system_test.ubuntu.full_cluster_reinstallation/169/console
Test Verify full cluster reinstallation.
Error:AssertionError: Task 'deploy' has incorrect status. error != ready, 'All nodes are finished. Failed tasks: Task[connectivity_tests/1] Stopping the deployment process!'
Verification failed.
Repo availability verification failed on following nodes slave-04_compute_cinder.
Following repos are not available - http://mirror.seed-cz1.fuel-infra.org/pkgs/snapshots/ubuntu-2017-01-11-030059/, http://mirror.fuel-infra.org/mos-repos/ubuntu/9.2, http://mirror.seed-cz1.fuel-infra.org/mos-repos/ubuntu/snapshots/9.0-2017-01-11-172422.

Revision history for this message
Alexander Kurenyshev (akurenyshev) wrote :

https://product-ci.infra.mirantis.net/job/9.x.system_test.ubuntu.unlock_settings_tab_states/169/console
Check settings and network tabs is unlocked for a positively
deployed and redeployed cluster
Error: AssertionError: Task 'deploy' has incorrect status. error != ready, 'Deployment has failed. All nodes are finished. Failed tasks: Task[top-role-compute/3], Task[top-role-compute/5] Stopping the deployment process!'
Because in puppet:
Err http://mirror.seed-cz1.fuel-infra.org/pkgs/snapshots/ubuntu-2017-01-11-030059/ trusty/main libasound2-data all 1.0.27.2-3ubuntu7
  Could not connect to mirror.seed-cz1.fuel-infra.org:80 (5.43.231.83), connection timed out

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/newton)

Reviewed: https://review.openstack.org/417969
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=59909bda6c65f0f810fd3f8b76a8e19f1e2d3934
Submitter: Jenkins
Branch: stable/newton

commit 59909bda6c65f0f810fd3f8b76a8e19f1e2d3934
Author: Vladimir Kuklin <email address hidden>
Date: Mon Jan 9 19:22:13 2017 +0300

    Fix vrouter route flush

    1. Do not set routing on status command - this is useless and
    destructive

    2. Save default routes into a separate file and restore them
    after flush

    Change-Id: Ia128979920e054343b2ac05e437683772c81731a
    Closes-bug: #1654967

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/417952
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=9f3edd83bb8686c395e4437351c110e2e1e3f511
Submitter: Jenkins
Branch: master

commit 9f3edd83bb8686c395e4437351c110e2e1e3f511
Author: Vladimir Kuklin <email address hidden>
Date: Mon Jan 9 19:22:13 2017 +0300

    Fix vrouter route flush

    1. Do not set routing on status command - this is useless and
    destructive

    2. Save default routes into a separate file and restore them
    after flush

    Change-Id: Ia128979920e054343b2ac05e437683772c81731a
    Closes-bug: #1654967

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/418934
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=066c7e5de99bce37db6b532ca4325e202e544be2
Submitter: Jenkins
Branch: master

commit 066c7e5de99bce37db6b532ca4325e202e544be2
Author: Vladimir Kuklin <email address hidden>
Date: Wed Jan 11 16:39:16 2017 +0300

    Set ip_forward in vrouter namespace to 1 each monitor

    For some reason we can have ip_forward reset sometimes
    in the vrouter namespace, which leads to connectivity tests
    issues. In order to fix this we move ip_forward setting
    to get_ns() function to monitor and set it each monitor operation

    Change-Id: I2d10d465259adc1f30161fee488feef4179b5c70
    Related-bug: #1654967

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-library (stable/mitaka)

Reviewed: https://review.openstack.org/418935
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=aea46cf7ba5b99824cc858d30b0b26d3dfbb5ec6
Submitter: Jenkins
Branch: stable/mitaka

commit aea46cf7ba5b99824cc858d30b0b26d3dfbb5ec6
Author: Vladimir Kuklin <email address hidden>
Date: Wed Jan 11 16:39:16 2017 +0300

    Set ip_forward in vrouter namespace to 1 each monitor

    For some reason we can have ip_forward reset sometimes
    in the vrouter namespace, which leads to connectivity tests
    issues. In order to fix this we move ip_forward setting
    to get_ns() function to monitor and set it each monitor operation

    Change-Id: I2d10d465259adc1f30161fee488feef4179b5c70
    Related-bug: #1654967

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-library (stable/newton)

Reviewed: https://review.openstack.org/418937
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=ccd31901ad22ffd52aaaa15b92e678e933ee91e5
Submitter: Jenkins
Branch: stable/newton

commit ccd31901ad22ffd52aaaa15b92e678e933ee91e5
Author: Vladimir Kuklin <email address hidden>
Date: Wed Jan 11 16:39:16 2017 +0300

    Set ip_forward in vrouter namespace to 1 each monitor

    For some reason we can have ip_forward reset sometimes
    in the vrouter namespace, which leads to connectivity tests
    issues. In order to fix this we move ip_forward setting
    to get_ns() function to monitor and set it each monitor operation

    Change-Id: I2d10d465259adc1f30161fee488feef4179b5c70
    Related-bug: #1654967

tags: added: on-veri
tags: added: on-verification
removed: on-veri
Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :

Verified on 9.2 snapshot #771.

tags: removed: on-verification
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-library 11.0.0.0rc1

This issue was fixed in the openstack/fuel-library 11.0.0.0rc1 release candidate.

Revision history for this message
Ilya Bumarskov (ibumarskov) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.