[Fuel-Main] added functional to support deploy on remote machine

Bug #1491925 reported by Bulat Gaifullin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Wishlist
Bulat Gaifullin

Bug Description

It would be cool if deployment scripts will support of deploying to remote machine via ssh.

the address of machine can be passed over environment variables, for example:

<email address hidden> ./launch_8GB.sh

implementation suggestions:

need to write the decorator that will incapsulate logic to run command. in case if env variable REMOTE_HOST it call remote command over ssh otherwise execute on current machine.
need to wrap all command in all scripts with this decorator

Tags: area-python
Changed in fuel:
milestone: none → 8.0
assignee: nobody → Bulat Gaifullin (bgaifullin)
importance: Undecided → Wishlist
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

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

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

Reviewed: https://review.openstack.org/220247
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=e1c573bdd1b177dd3c5c84e686259edb97bac691
Submitter: Jenkins
Branch: master

commit e1c573bdd1b177dd3c5c84e686259edb97bac691
Author: bgaifullin <email address hidden>
Date: Thu Sep 3 20:16:57 2015 +0300

    Added support to deploy product on remote machine via ssh

    It is useful in case if there is 2 machines:
    the main that has limited resources and used only for development and
    the second, that has enough resources to use it for deployment.
    enable feature VRDP for virtual machine

    Change-Id: Ib34a188311cc04250d29e685bf5b9f12ac2aeb05
    Closes-Bug: #1491925

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
tags: added: area-python
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

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

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

Reviewed: https://review.openstack.org/268336
Committed: https://git.openstack.org/cgit/openstack/fuel-main/commit/?id=60304cd369254d48e38f010d45e10d245b665d1b
Submitter: Jenkins
Branch: master

commit 60304cd369254d48e38f010d45e10d245b665d1b
Author: Maksim Malchuk <email address hidden>
Date: Fri Jan 15 16:54:13 2016 +0300

    Fix PATH issue for VirtualBox on Windows

    The support to deploy on a remote machine is broke the
    default behaviour on the Windows OS, so now it always
    needs to set the $PATH manually before using the scripts.

    Also, the new functionality didn't work on the remote
    Windows machine because the scripts change the $PATH on
    the local system only.

    This commit adds some more checks and fixes the local
    $PATH setup. It didn't check remote system requirements
    so deploy on a remote machine still have some problems.
    Added several messages in the scripts.

    Also this commit contain increased timeouts to fix
    failures during network interfaces add/change operations
    on some Windows systems.

    Change-Id: If5dadc1ece3931f42eac423aae4d7016d45c2040
    Closes-Bug: #1534129
    Partial-Bug: #1491925

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

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/271418

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

Reviewed: https://review.openstack.org/271418
Committed: https://git.openstack.org/cgit/openstack/fuel-main/commit/?id=6c6b088a3d52dd0eaf43d59f3a3a149c93a07e7e
Submitter: Jenkins
Branch: stable/8.0

commit 6c6b088a3d52dd0eaf43d59f3a3a149c93a07e7e
Author: Maksim Malchuk <email address hidden>
Date: Fri Jan 15 16:54:13 2016 +0300

    Fix PATH issue for VirtualBox on Windows

    The support to deploy on a remote machine is broke the
    default behaviour on the Windows OS, so now it always
    needs to set the $PATH manually before using the scripts.

    Also, the new functionality didn't work on the remote
    Windows machine because the scripts change the $PATH on
    the local system only.

    This commit adds some more checks and fixes the local
    $PATH setup. It didn't check remote system requirements
    so deploy on a remote machine still have some problems.
    Added several messages in the scripts.

    Also this commit contain increased timeouts to fix
    failures during network interfaces add/change operations
    on some Windows systems.

    Change-Id: If5dadc1ece3931f42eac423aae4d7016d45c2040
    (cherrypicked from commit 60304cd369254d48e38f010d45e10d245b665d1b)
    Closes-Bug: #1534129
    Partial-Bug: #1491925

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

Bulat said, that it works fine.

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.