[vbox] add publickey to fuelmaster node

Bug #1579123 reported by Vasiliy Pleshakov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Vasiliy Pleshakov
Mitaka
Fix Released
High
Maksim Malchuk

Bug Description

As a Devops I deploy a lot of fuel envs from different iso files. To faster access to envs I need to put my publickey to authorized_keys at Fuel-master node.

Description of the environment:
 Operation system: virtualbox scripts executed on Cygwin in Windows 7
 Versions of components: latest virtualbox scripts for Fuel 8
 Reference architecture: N/A
 Network model: N/A
 Related projects installed: N/A
Additional information:

I sugest:
1. add pulibc_key parameter to config.sh
2. create add_authorized_key function at functions/product.sh which will echo publickey to .ssh/authorized_keys@fuel-master
3. call add_authorized_key at the end of actions/master-node-create-and-install.sh

Tags: vbox-scripts
Changed in fuel:
assignee: nobody → Vasiliy Pleshakov (vpleshakov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-virtualbox (master)

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

Changed in fuel:
status: New → In Progress
Maciej Relewicz (rlu)
Changed in fuel:
importance: Undecided → High
milestone: none → 10.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-virtualbox (master)

Reviewed: https://review.openstack.org/313615
Committed: https://git.openstack.org/cgit/openstack/fuel-virtualbox/commit/?id=904eec20f8bee54f9b620b06779776bb77210461
Submitter: Jenkins
Branch: master

commit 904eec20f8bee54f9b620b06779776bb77210461
Author: Vasiliy Pleshakov <email address hidden>
Date: Fri May 6 18:35:52 2016 +0300

    Add ssh public key to Fuel master node

    This commit adds an ability to use ssh public key authentication for
    the Fuel master node by uploading your ssh public key to it. The path
    to the public key file can be provided in the 'config.sh' file.

    Closes-Bug: #1579123
    Change-Id: I93560126940457518fc4385c0518ab00c0cac01a

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-virtualbox (stable/mitaka)

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

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

Reviewed: https://review.openstack.org/315489
Committed: https://git.openstack.org/cgit/openstack/fuel-virtualbox/commit/?id=a22e73d04c477ae030a7fe31360149d322a8bb5d
Submitter: Jenkins
Branch: stable/mitaka

commit a22e73d04c477ae030a7fe31360149d322a8bb5d
Author: Vasiliy Pleshakov <email address hidden>
Date: Fri May 6 18:35:52 2016 +0300

    Add ssh public key to Fuel master node

    This commit adds an ability to use ssh public key authentication for
    the Fuel master node by uploading your ssh public key to it. The path
    to the public key file can be provided in the 'config.sh' file.

    Closes-Bug: #1579123
    Change-Id: I93560126940457518fc4385c0518ab00c0cac01a
    (cherry picked from commit 904eec20f8bee54f9b620b06779776bb77210461)

Maksym Strukov (unbelll)
tags: added: vbox-scripts
tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Verified on:
[root@fuel ~]# shotgun2 short-report
cat /etc/fuel_build_id:
 466
cat /etc/fuel_build_number:
 466
cat /etc/fuel_release:
 9.0
cat /etc/fuel_openstack_version:
 mitaka-9.0

Steps to verify:
1. Get the latest vbox scripts ('stable/mitaka' branch)
2. Uncomment the following line in config.sh:
public_key_file="${HOME}/.ssh/id_rsa.pub"
3. Run launch.sh script
4. ssh to master node

Actual result:
- ssh to master node without password
- .ssh/authorized_keys file contains my publickey

tags: removed: on-verification
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.