ovs firewall and dpdk tests failed with permission denied error

Bug #1666887 reported by Ilya Bumarskov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Sergey Novikov

Bug Description

it's necessary to fix ovs firewall tests:

Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
    self._testFunc()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/home/jenkins/workspace/10.0.system_test.ubuntu.ovs_firewall_with_dpdk/fuelweb_test/helpers/decorators.py", line 120, in wrapper
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/10.0.system_test.ubuntu.ovs_firewall_with_dpdk/fuelweb_test/tests/test_ovs_firewall.py", line 510, in deploy_ovs_firewall_and_dpdk_vlan
    check_firewall_driver(node['ip'], node['roles'][0], 'openvswitch')
  File "/home/jenkins/workspace/10.0.system_test.ubuntu.ovs_firewall_with_dpdk/fuelweb_test/helpers/checkers.py", line 1505, in check_firewall_driver
    ssh_manager.open_on_remote(ip, configpath))
  File "/home/jenkins/workspace/10.0.system_test.ubuntu.ovs_firewall_with_dpdk/fuelweb_test/helpers/ssh_manager.py", line 345, in open_on_remote
    return remote.open(path, mode)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/devops/helpers/ssh_client.py", line 836, in open
    return self._sftp.open(path, mode)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/paramiko/sftp_client.py", line 327, in open
    t, msg = self._request(CMD_OPEN, filename, imode, attrblock)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/paramiko/sftp_client.py", line 730, in _request
    return self._read_response(num)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/paramiko/sftp_client.py", line 781, in _read_response
    self._convert_status(msg)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/paramiko/sftp_client.py", line 809, in _convert_status
    raise IOError(errno.EACCES, text)
IOError: [Errno 13] Permission denied

Changed in fuel:
milestone: none → 10.1
importance: Undecided → High
tags: added: area-qa
tags: added: swarm-blocker
Changed in fuel:
assignee: nobody → Fuel QA Team (fuel-qa)
status: New → Confirmed
Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Sergey Novikov (snovikov)
Revision history for this message
Sergey Novikov (snovikov) wrote :

This behavior is side-effect of non-root access feature. There are two way to fix the problem:
1. Refuse using of sftp in fuel-devops when we need to open file on remote (We cannot pass 'sudo' to sftp)
2. Use root access in tests which requires opening of file on remote

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to fuel-infra/jenkins-jobs (master)

Fix proposed to branch: master
Change author: Sergey Novikov <email address hidden>
Review: https://review.fuel-infra.org/31521

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to fuel-infra/jenkins-jobs (master)

Reviewed: https://review.fuel-infra.org/31521
Submitter: Dmitry Kaigarodsev <email address hidden>
Branch: master

Commit: c550a7aad357b49c9949a05ee5bc61521509a948
Author: Sergey Novikov <email address hidden>
Date: Thu Mar 2 13:19:18 2017

Use root access in dpdk and ovs firewall tests

Change-Id: I68754350a2c541ba67f45774399615f7b46f0c1e
Closes-Bug: 1666887

Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → Fix Released
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.