Project

Profile

Help

Task #6738

Problem with debian 7.5

Added by Mark Zaslavskiy almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Timofey Turenko
Category:
mariadb testing
Sprint/Milestone:
Start date:
09.02.2016
Due date:
% Done:

100%

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

Description

- http://max-tst-01.mariadb.com:8089/view/regular_test/job/run_test_regular/backend=mariadb-10.0,box=debian_7.5_libvirt/31/console

Additional info from Kirill Yudenok

[17:34:30] Кирилл Юденок: странная ошибка в логе с debian-7.5
[17:34:32] Кирилл Юденок: /home/vagrant/.vagrant.d/gems/gems/fog-libvirt-0.0.2/lib/fog/libvirt/requests/compute/list_domains.rb:58:in `info': Call to virDomainGetInfo failed: Domain not found: no domain with matching uuid '7e90e56e-67d9-493b-96e1-83a98631d813' (mariadb-55-debian_75_libvirt-release-130-regular-test_node2) (Libvirt::RetrieveError)
from /home/vagrant/.vagrant.d/gems/gems/fog-libvirt-0.0.2/lib/fog/libvirt/requests/compute/list_domains.rb:58:in `domain_to_attributes'

History

#1 Updated by Mark Zaslavskiy almost 6 years ago

  • Assignee set to Alexander Kaluzhny

#2 Updated by Timofey Turenko almost 6 years ago

'vagrant up' gets stuck with following config:

vagrant@ns3014560:~/mdbci$ cat deb-centos-test.json 
{
  "cookbook_path" : "../recipes/cookbooks/",
  "node0" :
  {
        "hostname" : "node0",
        "box" : "centos_7.0_libvirt",
    "product" : {
              "name": "mariadb",
        "version": "10.0",
                "cnf_template" : "server1.cnf",
                "cnf_template_path": "~/build-scripts/test-setup-scripts/cnf" 
    }

  },

  "maxscale" :
  {
        "hostname" : "maxscale",
        "box" : "debian_7.5_libvirt",
        "product" : {
                "name": "maxscale" 
        }

  }
}

log:

vagrant@ns3014560:~/mdbci/deb-centos-test$ vagrant up
Bringing machine 'node0' up with 'libvirt' provider...
Bringing machine 'maxscale' up with 'libvirt' provider...
==> maxscale: Creating image (snapshot of base box volume).
==> node0: Creating image (snapshot of base box volume).
==> maxscale: Creating domain with the following settings...
==> node0: Creating domain with the following settings...
==> maxscale:  -- Name:              deb-centos-test_maxscale
==> node0:  -- Name:              deb-centos-test_node0
==> node0:  -- Domain type:       kvm
==> maxscale:  -- Domain type:       kvm
==> node0:  -- Cpus:              1
==> node0:  -- Memory:            512M
==> maxscale:  -- Cpus:              1
==> node0:  -- Management MAC:    
==> node0:  -- Loader:            
==> node0:  -- Base box:          centos/7
==> maxscale:  -- Memory:            512M
==> maxscale:  -- Management MAC:    
==> maxscale:  -- Loader:            
==> node0:  -- Storage pool:      default
==> maxscale:  -- Base box:          baremettle/debian-7.5
==> maxscale:  -- Storage pool:      default
==> node0:  -- Image:             /var/lib/libvirt/images/deb-centos-test_node0.img (41G)
==> maxscale:  -- Image:             /var/lib/libvirt/images/deb-centos-test_maxscale.img (40G)
==> node0:  -- Volume Cache:      default
==> maxscale:  -- Volume Cache:      default
==> node0:  -- Kernel:            
==> maxscale:  -- Kernel:            
==> node0:  -- Initrd:            
==> maxscale:  -- Initrd:            
==> node0:  -- Graphics Type:     vnc
==> node0:  -- Graphics Port:     5900
==> maxscale:  -- Graphics Type:     vnc
==> node0:  -- Graphics IP:       127.0.0.1
==> maxscale:  -- Graphics Port:     5900
==> node0:  -- Graphics Password: Not defined
==> node0:  -- Video Type:        cirrus
==> maxscale:  -- Graphics IP:       127.0.0.1
==> node0:  -- Video VRAM:        9216
==> maxscale:  -- Graphics Password: Not defined
==> node0:  -- Keymap:            en-us
==> maxscale:  -- Video Type:        cirrus
==> node0:  -- INPUT:             type=mouse, bus=ps2
==> maxscale:  -- Video VRAM:        9216
==> node0:  -- Command line : 
==> maxscale:  -- Keymap:            en-us
==> maxscale:  -- INPUT:             type=mouse, bus=ps2
==> maxscale:  -- Command line : 
==> maxscale: Creating shared folders metadata...
==> maxscale: Starting domain.
==> node0: Creating shared folders metadata...
==> maxscale: Waiting for domain to get an IP address...
==> node0: Starting domain.
==> node0: Waiting for domain to get an IP address...
==> maxscale: Waiting for SSH to become available...
==> node0: Waiting for SSH to become available...
    maxscale: 
    maxscale: Vagrant insecure key detected. Vagrant will automatically replace
    maxscale: this with a newly generated keypair for better security.
    node0: 
    node0: Vagrant insecure key detected. Vagrant will automatically replace
    node0: this with a newly generated keypair for better security.
    node0: 
    node0: Inserting generated public key within guest...
    node0: Removing insecure key from the guest if its present...
    node0: Key inserted! Disconnecting and reconnecting using new SSH key...
==> node0: Setting hostname...
    maxscale: 
    maxscale: Inserting generated public key within guest...
==> node0: Configuring and enabling network interfaces...
    maxscale: Removing insecure key from the guest if its present...
    maxscale: Key inserted! Disconnecting and reconnecting using new SSH key...
==> maxscale: Setting hostname...
==> maxscale: Configuring and enabling network interfaces...
==> node0: Installing rsync to the VM...
==> maxscale: Installing rsync to the VM...
==> node0: Rsyncing folder: /home/vagrant/mdbci/deb-centos-test/ => /home/vagrant/sync
==> node0: Rsyncing folder: /home/vagrant/mdbci/deb-centos-test/ => /vagrant
==> node0: Rsyncing folder: /home/vagrant/build-scripts/test-setup-scripts/cnf/ => /home/vagrant/cnf_templates
==> node0: Rsyncing folder: /home/vagrant/mdbci/recipes/cookbooks/ => /tmp/vagrant-chef/5647e9fbc8a74e8fe1cfa518d9f38f42/cookbooks
==> node0: Rsyncing folder: /home/vagrant/mdbci/deb-centos-test/ => /tmp/vagrant-chef/8a5f37423697fa970456ef9804f262f5/roles
==> node0: Running provisioner: chef_solo...
    node0: Installing Chef (latest)...
Generating chef JSON and uploading...
==> node0: Running chef-solo...
==> node0: [2016-02-09T10:37:58-05:00] INFO: Forking chef instance to converge...
==> node0: Starting Chef Client, version 12.6.0
==> node0: [2016-02-09T10:37:58-05:00] INFO: *** Chef 12.6.0 ***
==> node0: [2016-02-09T10:37:58-05:00] INFO: Chef-client pid: 16678
==> node0: [2016-02-09T10:37:59-05:00] INFO: Setting the run_list to ["role[node0]"] from CLI options
==> node0: [2016-02-09T10:37:59-05:00] INFO: Run List is [role[node0]]
==> node0: [2016-02-09T10:37:59-05:00] INFO: Run List expands to [mdbc]
==> node0: [2016-02-09T10:37:59-05:00] INFO: Starting Chef Run for node0
==> node0: [2016-02-09T10:37:59-05:00] INFO: Running start handlers
==> node0: [2016-02-09T10:37:59-05:00] INFO: Start handlers complete.
==> node0: Compiling Cookbooks...
==> node0: Platform family: rhel
==> node0: Platform version: 7.1.1503
==> node0: Converging 12 resources
==> node0: Recipe: mariadb::mdbcrepos
==> node0:   * template[/etc/yum.repos.d/mariadb.repo] action create[2016-02-09T10:37:59-05:00] INFO: template[/etc/yum.repos.d/mariadb.repo] created file /etc/yum.repos.d/mariadb.repo
==> node0: 
==> node0:     - create new file /etc/yum.repos.d/mariadb.repo[2016-02-09T10:37:59-05:00] INFO: template[/etc/yum.repos.d/mariadb.repo] updated file contents /etc/yum.repos.d/mariadb.repo
==> node0: 
==> node0:     - update content in file /etc/yum.repos.d/mariadb.repo from none to a4627f
==> node0:     --- /etc/yum.repos.d/mariadb.repo    2016-02-09 10:37:59.525000000 -0500
==> node0:     +++ /etc/yum.repos.d/.mariadb.repo20160209-16678-4of8gg    2016-02-09 10:37:59.525000000 -0500
==> node0:     @@ -1 +1,6 @@
==> node0:     +[mariadb]
==> node0:     +name = MariaDB
==> node0:     +baseurl = http://yum.mariadb.org/10.0/centos7-amd64
==> node0:     +gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
==> node0:     +gpgcheck=1
==> node0:     - restore selinux security context
==> node0: Recipe: mariadb::install_community
==> node0:   * yum_package[net-tools] action install[2016-02-09T10:38:02-05:00] INFO: yum_package[net-tools] installing net-tools-2.0-0.17.20131004git.el7 from base repository
==> node0: [2016-02-09T10:38:10-05:00] INFO: yum_package[net-tools] installed net-tools at 2.0-0.17.20131004git.el7
==> node0: 
==> node0:     - install version 2.0-0.17.20131004git.el7 of package net-tools
==> node0:   * yum_package[psmisc] action install[2016-02-09T10:38:10-05:00] INFO: yum_package[psmisc] installing psmisc-22.20-9.el7 from base repository
==> node0: [2016-02-09T10:38:16-05:00] INFO: yum_package[psmisc] installed psmisc at 22.20-9.el7
==> node0: 
==> node0:     - install version 22.20-9.el7 of package psmisc
==> node0:   * bash[Turn off SElinux on CentOS >= 6.0] action run[2016-02-09T10:38:16-05:00] INFO: bash[Turn off SElinux on CentOS >= 6.0] ran successfully
==> node0: 
==> node0:     - execute "bash"  "/tmp/chef-script20160209-16678-1ekk0tw" 
==> node0:   * cookbook_file[selinux.config] action create[2016-02-09T10:38:16-05:00] INFO: cookbook_file[selinux.config] backed up to /var/chef/backup/etc/selinux/config.chef-20160209103816.881582
==> node0: [2016-02-09T10:38:16-05:00] INFO: cookbook_file[selinux.config] updated file contents /etc/selinux/config
==> node0: 
==> node0:     - update content in file /etc/selinux/config from 4d643c to 1220fd
==> node0:     --- /etc/selinux/config    2015-10-02 10:37:58.619867000 -0400
==> node0:     +++ /etc/selinux/.selinux.config20160209-16678-1ygx9mr    2016-02-09 10:38:16.879000000 -0500
==> node0:     @@ -4,8 +4,8 @@
==> node0:      #     enforcing - SELinux security policy is enforced.
==> node0:      #     permissive - SELinux prints warnings instead of enforcing.
==> node0:      #     disabled - No SELinux policy is loaded.
==> node0:     -SELINUX=enforcing
==> node0:     -# SELINUXTYPE= can take one of three two values:
==> node0:     +SELINUX=permissive
==> node0:     +# SELINUXTYPE= can take one of these two values:
==> node0:      #     targeted - Targeted processes are protected,
==> node0:      #     minimum - Modification of targeted policy. Only selected processes are protected. 
==> node0:      #     mls - Multi Level Security protection.
==> node0:     - restore selinux security context
==> node0:   * bash[Install and configure iptables] action run
==> node0:     [execute] Loaded plugins: fastestmirror
==> node0:               Loading mirror speeds from cached hostfile
==> node0:                * base: centos.quelquesmots.fr
==> node0:                * extras: centos.quelquesmots.fr
==> node0:                * updates: centos.weezel.co.uk
==> node0:               Resolving Dependencies
==> node0:               --> Running transaction check
==> node0:               ---> Package iptables-services.x86_64 0:1.4.21-16.el7 will be installed
==> node0:               --> Processing Dependency: iptables = 1.4.21-16.el7 for package: iptables-services-1.4.21-16.el7.x86_64
==> node0:               --> Running transaction check
==> node0:               ---> Package iptables.x86_64 0:1.4.21-13.el7 will be updated
==> node0:               ---> Package iptables.x86_64 0:1.4.21-16.el7 will be an update
==> node0:               --> Finished Dependency Resolution
==> node0:               
==> node0:               Dependencies Resolved
==> node0:               
==> node0:               ================================================================================
==> node0:                Package                  Arch          Version               Repository   Size
==> node0:               ================================================================================
==> node0:               Installing:
==> node0:                iptables-services        x86_64        1.4.21-16.el7         base         50 k
==> node0:               Updating for dependencies:
==> node0:                iptables                 x86_64        1.4.21-16.el7         base        424 k
==> node0:               
==> node0:               Transaction Summary
==> node0:               ================================================================================
==> node0:               Install  1 Package
==> node0:               Upgrade             ( 1 Dependent package)
==> node0:               
==> node0:               Total download size: 474 k
==> node0:               Downloading packages:
==> node0:               Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
==> node0:               --------------------------------------------------------------------------------
==> node0:               Total                                              954 kB/s | 474 kB  00:00     
==> node0:               Running transaction check
==> node0:               Running transaction test
==> node0:               Transaction test succeeded
==> node0:               Running transaction
==> node0:                 Updating   : iptables-1.4.21-16.el7.x86_64                                1/3 
==> node0:                 Installing : iptables-services-1.4.21-16.el7.x86_64                       2/3 
==> node0:                 Cleanup    : iptables-1.4.21-13.el7.x86_64                                3/3 
==> node0:                 Verifying  : iptables-services-1.4.21-16.el7.x86_64                       1/3 
==> node0:                 Verifying  : iptables-1.4.21-16.el7.x86_64                                2/3 
==> node0:                 Verifying  : iptables-1.4.21-13.el7.x86_64                                3/3 
==> node0:               
==> node0:               Installed:
==> node0:                 iptables-services.x86_64 0:1.4.21-16.el7                                      
==> node0:               
==> node0:               Dependency Updated:
==> node0:                 iptables.x86_64 0:1.4.21-16.el7                                               
==> node0:               
==> node0:               Complete!
==> node0:               ln -s '/usr/lib/systemd/system/iptables.service' '/etc/systemd/system/basic.target.wants/iptables.service'
==> node0: [2016-02-09T10:38:29-05:00] INFO: bash[Install and configure iptables] ran successfully
==> node0:     - execute "bash"  "/tmp/chef-script20160209-16678-1ig8fyk" 
==> node0:   * execute[Opening MariaDB ports] action run[2016-02-09T10:38:29-05:00] INFO: execute[Opening MariaDB ports] ran successfully
==> node0: 
==> node0:     - execute iptables -I INPUT -p tcp --dport 3306 -j ACCEPT -m state --state NEW
==> node0:   * bash[Save iptables rules on CentOS 7] action run[2016-02-09T10:38:29-05:00] INFO: bash[Save iptables rules on CentOS 7] ran successfully
==> node0: 
==> node0:     - execute "bash"  "/tmp/chef-script20160209-16678-1a0m7jy" 
==> node0:   * yum_package[MariaDB-server] action install[2016-02-09T10:38:29-05:00] INFO: yum_package[MariaDB-server] installing MariaDB-server-10.0.23-1.el7.centos from mariadb repository
==> node0: [2016-02-09T10:41:22-05:00] INFO: yum_package[MariaDB-server] installed MariaDB-server at 10.0.23-1.el7.centos
==> node0: 
==> node0:     - install version 10.0.23-1.el7.centos of package MariaDB-server
==> node0:   * yum_package[MariaDB-client] action install (up to date)
==> node0:   * execute[Create cnf_template directory] action run[2016-02-09T10:41:22-05:00] INFO: execute[Create cnf_template directory] ran successfully
==> node0: 
==> node0:     - execute mkdir -p /etc/my.cnf.d/
==> node0:   * execute[Copy server.cnf to cnf_template directory] action run[2016-02-09T10:41:22-05:00] INFO: execute[Copy server.cnf to cnf_template directory] ran successfully
==> node0: 
==> node0:     - execute cp /home/vagrant/cnf_templates/server1.cnf /etc/my.cnf.d/
==> node0: [2016-02-09T10:41:22-05:00] INFO: Chef Run complete in 203.519688381 seconds
==> node0: [2016-02-09T10:41:22-05:00] INFO: Skipping removal of unused files from the cache
==> node0: 
==> node0: Running handlers:
==> node0: [2016-02-09T10:41:22-05:00] INFO: Running report handlers
==> node0: Running handlers complete
==> node0: [2016-02-09T10:41:22-05:00] INFO: Report handlers complete
==> node0: Chef Client finished, 11/12 resources updated in 03 minutes 24 seconds

#3 Updated by Timofey Turenko almost 6 years ago

  • Priority changed from Normal to High

#4 Updated by Kirill Yudenok almost 6 years ago

  • Assignee changed from Alexander Kaluzhny to Kirill Yudenok

#5 Updated by Kirill Yudenok almost 6 years ago

  • Status changed from New to Active / In progress

#6 Updated by Kirill Yudenok almost 6 years ago

  • Status changed from Active / In progress to Review
  • Assignee changed from Kirill Yudenok to Mark Zaslavskiy
  • % Done changed from 0 to 100
  • Estimated time set to 4:00 h
Исследования по задаче 6738
  • запуск конф-и из centos7 (ssh.pty=true) + debian7.5 + ubuntu (ssh.pty=false) -- неудача, зависание после выполнения chef для centos7.
  • если поставить запуск debian+ubuntu перед centos7 и ssh.pty = false -- запуск успешен, сначала запустится centos7, ожидание и потом все остальные боксы.
  • если выполнить тоже самое, но выставить ssh.pty = true для centos7 -- тоже успех, как в пункте 2.
  • запуск отдельно двух машин debian и ubuntu -- успех.
  • запуск трех машин centos7, ubuntu, debian при ssh.pty = false у всех машин -- успех!

Вывод -- когда centos7 с опцией config.ssh.pty = true стоит первой в конф-и, то следующие после неё машины не запускаются.

Решение -- cледует убрать флаг config.ssh.pty = true у centos7 или выставлять его в false, тогда запуск проходит без зависаний! Можно выставить флаг ssh.pty = false для всех libvirt боксов в файле описания боксов (~/mdbci/BOXES/boxes_libvirt.json).

#7 Updated by Mark Zaslavskiy almost 6 years ago

  • Status changed from Review to Testing

#8 Updated by Mark Zaslavskiy almost 6 years ago

  • Assignee changed from Mark Zaslavskiy to Timofey Turenko

#9 Updated by Timofey Turenko almost 6 years ago

  • Status changed from Testing to Closed

at least centos7 + Debian works. Problem partly sovled, task can be closed

Also available in: Atom PDF