SSH session will remain after exception is raised.

Bug #1665498 reported by Takanori Miyagishi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-fujitsu
Fix Released
High
Takanori Miyagishi

Bug Description

SSH session will not closed when exception is occurred at setup_vlan().

Following process need to put into try/exception statement:
        self.client.connect(target_ip)
        self.client.set_vlan(vlan_id, lli[0]['port_id'])
        self.client.disconnect()

Changed in networking-fujitsu:
assignee: nobody → Takanori Miyagishi (miyagishi-t)
Changed in networking-fujitsu:
importance: Undecided → High
Changed in networking-fujitsu:
milestone: none → 4.1.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-fujitsu (master)

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

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

Reviewed: https://review.openstack.org/451205
Committed: https://git.openstack.org/cgit/openstack/networking-fujitsu/commit/?id=e5872b3b4e9338d240d87b28e8d8fc21474b97e2
Submitter: Jenkins
Branch: master

commit e5872b3b4e9338d240d87b28e8d8fc21474b97e2
Author: takanorimiyagishi <email address hidden>
Date: Wed Mar 29 15:18:12 2017 +0900

    Close ssh for setup_vlan when error has occurred

    Put following process on setup_vlan() into try statement to close ssh
    session when an exception is raised while processing these method.
      self.client.connect()
      self.client.set_vlan()
      self.client.disconnect()

    Change-Id: Ice3d7d897df130d4bdf4a7d434213b97874af9cc
    Closes-Bug: #1665498

Changed in networking-fujitsu:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-fujitsu (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/453121

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-fujitsu (stable/ocata)

Reviewed: https://review.openstack.org/453121
Committed: https://git.openstack.org/cgit/openstack/networking-fujitsu/commit/?id=f9c67e3686607f1ede6d0a2cc6894d8cef8d6078
Submitter: Jenkins
Branch: stable/ocata

commit f9c67e3686607f1ede6d0a2cc6894d8cef8d6078
Author: takanorimiyagishi <email address hidden>
Date: Wed Mar 29 15:18:12 2017 +0900

    Close ssh for setup_vlan when error has occurred

    Put following process on setup_vlan() into try statement to close ssh
    session when an exception is raised while processing these method.
      self.client.connect()
      self.client.set_vlan()
      self.client.disconnect()

    Change-Id: Ice3d7d897df130d4bdf4a7d434213b97874af9cc
    Closes-Bug: #1665498
    (cherry picked from commit e5872b3b4e9338d240d87b28e8d8fc21474b97e2)

tags: added: in-stable-ocata
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.