Table des matières
- 2026:
- 2025:
4 billet(s) pour septembre 2026
| Notes HTTP Strict Transport Security - HSTS | 2026/09/18 11:04 | Jean-Baptiste |
| Notes GNU Linux GPU carte graphiques | 2026/09/08 15:49 | Jean-Baptiste |
| Notes GNU Linux graphique | 2026/09/08 15:42 | Jean-Baptiste |
| Notes urlencoding - passer des mots de passe en HTTPS | 2026/09/03 17:58 | Jean-Baptiste |
Paquet debian erreur the package jenkins needs to be reinstalled but i can t find an archive for it
LANG=C apt-get remove tzdata-java
Reading package lists... Done Building dependency tree Reading state information... Done E: The package jenkins needs to be reinstalled, but I can't find an archive for it.
Solution
dpkg --remove --force-remove-reinstreq jenkins
Il peut aussi être utile de faire
apt-get -f install
Paquet Debian - Réinstaller et restaurer les fichiers de configuration
Reinstall and restore configurations files
sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall snmp
Paquet Debian - modifier les droits ou le propriétaire de certains fichiers déployé par un deb
Exemple :
dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3
OpenStack multidomain
Voir :
openstack domain create --description "Test Domain" xxdom openstack user create --domain xxdom xxadmin --password-prompt openstack role create admin --domain xxdom openstack project create --description "Projet xx 1" xx_prj1 --domain xxdom openstack role add --project xx_prj1 --user xxadmin admin
Activation du réseau
openstack network set --share public
cp -p /opt/stack/horizon/openstack_dashboard/local/local_settings.py{,.orig}
/opt/stack/horizon/openstack_dashboard/local/local_settings.py
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'default'
Voir https://github.com/openstack/horizon/blob/master/openstack_dashboard/local/local_settings.py.example
systemctl restart apache2
OpenStack Glance - VIO - Import a Virtual Machine Template as an Image
Note : la commande Glance n'utilise pas le fichier cloud.yaml mais les variables d'environnement.
Voir API CLI OpenStack Glance - configuration authentification via variables d'environnement
Pour connaître l'URL :
Allez sur https://vco.acme.local/ puis icone 2em icone en haut (VMs and Templates)
Créer une image vide
glance image-create --name image-name --disk-format vmdk --container-format bare
Pour retrouver l'ID de l'image
$ openstack image list |grep image-name | dada9516-b37d-481b-8d20-dcaa3951f518 | image-name | active |
Lier le fichier existant à l'image OpenStack nouvellement crée.
glance location-add dada9516-b37d-481b-8d20-dcaa3951f518 --url "vi://vco.acme.local/DC_VIO/vm/OpenStack/Project (89274bfabff64a28abedc8f5fd3d3b2f)/Images/abdd879c-3c6b-4fd5-a42b-458fdc231fee-vco-TL0HWP?managed=True" --visibility public --property vmware_adaptertype="lsiLogicsas" --property vmware_disktype="streamOptimized" --property stores="vco.acme.local"
Pour comparer les métadonnées entre deux images
vimdiff <(openstack image show VM_SUPER -f shell) <(openstack image show VM_NEW -f shell) vimdiff <(openstack image show VM_SUPER -f yaml -c properties) <(openstack image show VM_NEW -f yaml -c properties)
Mettre à jour les métadonnées.
glance image-update 4899c91a-c0ac-4809-b469-70ebd0863e3a --visibility public --property vmware_adaptertype="lsiLogicsas" --property vmware_disktype="streamOptimized" --property stores="vco.acme.local" openstack image set VM_NEW --min-disk 10 --min-ram 1
