Actions
Demande #1161
closedinstaller les clés ssh sur opium.lan.april-int
Difficulté:
1 Très Facile
Description
opium.lan.april-int est une machine vserver au meme titre que source:puppetmaster/manifests/vserver-pavot.pp le node 'pavot.april-int', Il faut créer un nouveau manifest puppet vserver-opium sur le même modèle et l'associer aux service:
include april_ssh include april_nagios::check_ssh_port
Pour en tester le bon fonctionnement il faut aussi faire un test sur le modèle de source:puppetmaster/manifests/pavot.april-int/test-in-openstack.sh
Updated by Loïc Dachary almost 12 years ago
- Difficulté changed from 2 Facile to 1 Très Facile
Updated by Cédric CORAZZA almost 12 years ago
- Due date set to 12/30/2012
- Assignee set to Cédric CORAZZA
- Estimated time set to 1:00 h
Updated by Loïc Dachary almost 12 years ago
- Target version changed from Backlog to Décembre 2012 (2/2)
Updated by Loïc Dachary almost 12 years ago
Il faut ajouter le nouveau manifest source:puppetmaster/manifests/vserver-opium.pp dans source:puppetmaster/manifests/site.pp sinon il n'est pas pris en compte
Updated by Cédric CORAZZA almost 12 years ago
Build jenkins OK : http://jenkins.april.org/jenkins/job/puppetmaster/244/
Updated by Loïc Dachary almost 12 years ago
echec
root@opium:~# puppet agent -vt info: Retrieving plugin info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb err: Could not retrieve catalog from remote server: Error 400 on SERVER: Must pass address to April_nagios::Host[opium.lan.april-int] at /etc/puppet/modules/april_nagios/manifests/init.pp:132 on node opium.lan.april-int warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run
pourtant
root@opium:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 link/ether 00:23:54:7b:db:f9 brd ff:ff:ff:ff:ff:ff inet 192.168.3.1/24 brd 192.168.3.255 scope global eth0 inet 192.168.3.110/24 brd 192.168.3.255 scope global secondary eth0 inet6 fe80::223:54ff:fe7b:dbf9/64 scope link valid_lft forever preferred_lft forever 3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 link/ether f8:d1:11:10:3d:58 brd ff:ff:ff:ff:ff:ff inet 172.28.220.193/24 brd 172.28.220.255 scope global eth2 inet6 fe80::fad1:11ff:fe10:3d58/64 scope link valid_lft forever preferred_lft forever 5: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100 link/none inet 192.168.0.26 peer 192.168.0.25/32 scope global tun0
mais
root@opium:~# facter | grep address macaddress => 00:23:54:7b:db:f9 macaddress_eth0 => 00:23:54:7b:db:f9 macaddress_eth2 => f8:d1:11:10:3d:58
pourquoi n'y a-t-il pas d'adresse IP comme sur
root@ns1:~# facter | grep address ipaddress => 192.168.1.19 ipaddress_dummy0 => 192.168.1.19 ipaddress_eth0 => 88.191.250.4 ipaddress_tun0 => 192.168.0.22 macaddress => c2:32:53:1d:3f:95 macaddress_dummy0 => c2:32:53:1d:3f:95 macaddress_eth0 => 00:13:72:fb:07:ab macaddress_eth1 => 00:10:18:15:dd:4e macaddress_eth2 => 00:10:18:15:dd:1c macaddress_eth3 => 00:13:72:fb:07:a9
alors que la version est
ii facter 1.6.9-2~bpo60+2
Updated by Loïc Dachary almost 12 years ago
Updated by Loïc Dachary almost 12 years ago
La regexp de facter ne match pas inet adr: qui est la traduction française de inet addr: dans ifconfig.
root@opium:~# LC_ALL=C ifconfig | grep inet inet addr:192.168.3.1 Bcast:192.168.3.255 Mask:255.255.255.0 inet6 addr: fe80::223:54ff:fe7b:dbf9/64 Scope:Link inet addr:172.28.220.193 Bcast:172.28.220.255 Mask:255.255.255.0 inet6 addr: fe80::fad1:11ff:fe10:3d58/64 Scope:Link inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host inet addr:192.168.0.26 P-t-P:192.168.0.25 Mask:255.255.255.255 root@opium:~# ifconfig | grep inet inet adr:192.168.3.1 Bcast:192.168.3.255 Masque:255.255.255.0 adr inet6: fe80::223:54ff:fe7b:dbf9/64 Scope:Lien inet adr:172.28.220.193 Bcast:172.28.220.255 Masque:255.255.255.0 adr inet6: fe80::fad1:11ff:fe10:3d58/64 Scope:Lien inet adr:127.0.0.1 Masque:255.0.0.0 adr inet6: ::1/128 Scope:Hôte inet adr:192.168.0.26 P-t-P:192.168.0.25 Masque:255.255.255.255 root@opium:~# echo $LC_ALL fr_FR.UTF-8
Updated by Loïc Dachary almost 12 years ago
LC_ALL=C puppet agent -vt
et correction pour le cas ou le daemon est lancé
diff --git a/default/puppet b/default/puppet index 4bc02a0..874fb63 100644 --- a/default/puppet +++ b/default/puppet @@ -5,3 +5,6 @@ START=no # Startup options DAEMON_OPTS="" + +# translations break things https://agir.april.org/issues/1161#note-6 +export LC_ALL=C
Updated by Loïc Dachary almost 12 years ago
- Status changed from Nouveau to Résolu
- % Done changed from 0 to 100
Updated by Quentin Gibeaux over 5 years ago
- Status changed from Résolu to Fermé
Actions