Project

Profile

Help

Task #7110

Implement function collectConfigurationNetworkInfo which does (almost) the same as set_env_vagrant.sh

Added by Mark Zaslavskiy over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
High
Assignee:
Timofey Turenko
Category:
mdbci features
Sprint/Milestone:
Start date:
23.06.2016
Due date:
% Done:

100%

Estimated time:
3:00 h
Target branch:
Test scenario:

# 1. Generate node (echo $? => 0)
./mdbci --template confs/docker_lite.json generate SOME_DIR
./mdbci --template confs/docker_lite.json generate SOME_DIR

# 2. Up nodes (echo $? => 0).
./mdbci up SOME_DIR

# 3. It will be SOME_DIR_network_config file In repo directory. Show content:
cat SOME_DIR_network_config

# 4. Run test (echo $?=>0)
configPath=SOME_DIR stoppedConfigPath=SOME_DIR2 rspec spec/unit/7110_collectConfigurationNetworkInfo_spec.rb


Description

1. collectConfigurationNetworkInfo: For each node of configuration the following information should be recieved in a string form:
  • ./mdbci show network
  • ./mdbci show keyfile
  • ./mdbci show private_ip
  • ./mdbci ssh --command 'whoami'
  • ./mdbci ssh --command 'hostname'
    and printed to file <configuration_name>_network_settings as environment variables.

Please use stub function related for each command refactoring task (#7106 #7107 #7108 #7109)
+ add parametrized test for function

2. call of collectConfigurationNetworkInfo should be added just after moment when we done successful mdbci up.


Related issues

Related to [mdbci] Maria DB Continuous integration tool - Task #7102: Collect info from set_environment during mdbci up and put it to text file in case of successful upClosed22.06.2016

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by Mark Zaslavskiy over 4 years ago

  • Related to Task #7102: Collect info from set_environment during mdbci up and put it to text file in case of successful up added

#2 Updated by Mark Zaslavskiy over 4 years ago

  • Description updated (diff)

#3 Updated by Mark Zaslavskiy over 4 years ago

  • Assignee set to Alexander Kaluzhny

#4 Updated by Mark Zaslavskiy over 4 years ago

  • Sprint/Milestone changed from 0.83 to 0.9

#5 Updated by Mark Zaslavskiy over 4 years ago

  • Assignee changed from Alexander Kaluzhny to Ilfat Kinyaev

#6 Updated by Ilfat Kinyaev over 4 years ago

  • Estimated time set to 3:00 h

#7 Updated by Mark Zaslavskiy over 4 years ago

  • Description updated (diff)

#8 Updated by Mark Zaslavskiy over 4 years ago

  • Assignee changed from Ilfat Kinyaev to Mark Zaslavskiy

#9 Updated by Mark Zaslavskiy over 4 years ago

  • Status changed from New to Active / In progress

#10 Updated by Mark Zaslavskiy over 4 years ago

  • Description updated (diff)

#11 Updated by Mark Zaslavskiy over 4 years ago

support usecase when only one node is up.

#14 Updated by Mark Zaslavskiy over 4 years ago

  • Priority changed from Normal to High

#15 Updated by Mark Zaslavskiy over 4 years ago

  • Status changed from Active / In progress to New
  • Assignee changed from Mark Zaslavskiy to Ilfat Kinyaev

#16 Updated by Ilfat Kinyaev over 4 years ago

  • Status changed from New to Active / In progress

#17 Updated by Ilfat Kinyaev over 4 years ago

  • Status changed from Active / In progress to New
  • % Done changed from 0 to 30

#18 Updated by Ilfat Kinyaev over 4 years ago

  • Status changed from New to Active / In progress

#19 Updated by Ilfat Kinyaev over 4 years ago

  • % Done changed from 30 to 50
  • Test scenario updated (diff)

#20 Updated by Ilfat Kinyaev over 4 years ago

  • % Done changed from 50 to 70

#22 Updated by Ilfat Kinyaev over 4 years ago

  • Test scenario updated (diff)

#23 Updated by Ilfat Kinyaev over 4 years ago

  • % Done changed from 70 to 100
  • Test scenario updated (diff)

#24 Updated by Ilfat Kinyaev over 4 years ago

  • Status changed from Active / In progress to Review
  • Assignee changed from Ilfat Kinyaev to Mark Zaslavskiy

Added to unit_parametrized_tasks.rb.
NOTE: need param stoppedConfigPath fix.

#26 Updated by Mark Zaslavskiy over 4 years ago

  • Status changed from Review to Testing
  • Assignee changed from Mark Zaslavskiy to Timofey Turenko

#27 Updated by Mark Zaslavskiy over 4 years ago

File content example:


node0_network=172.17.0.8
node0_keyfile="/home/vagranttest/mdbci_zaslavskiy/SOME_DIR/.vagrant/machines/node0/docker/private_key" 
node0_private_ip=172.17.0.8
node0_whoami=vagrant
node0_hostname=19f0d571bab0
galera0_network=172.17.0.9
galera0_keyfile="/home/vagranttest/mdbci_zaslavskiy/SOME_DIR/.vagrant/machines/galera0/docker/private_key" 
galera0_private_ip=172.17.0.9
galera0_whoami=vagrant
galera0_hostname=f9d0c1d4a9cb
maxscale_network=172.17.0.10
maxscale_keyfile="/home/vagranttest/mdbci_zaslavskiy/SOME_DIR/.vagrant/machines/maxscale/docker/private_key" 
maxscale_private_ip=172.17.0.10
maxscale_whoami=vagrant
maxscale_hostname=f60eb51dd575

#28 Updated by Timofey Turenko over 4 years ago

  • Status changed from Testing to Closed

Also available in: Atom PDF