Outils pour utilisateurs

Outils du site


blog

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
2025/03/24 15:06

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
2025/03/24 15:06

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

FIXME

2025/03/24 15:06

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
2025/03/24 15:06

OpenStack Glance - VIO - Import a Virtual Machine Template as an Image

Source : https://docs.vmware.com/en/VMware-Integrated-OpenStack/6.0/com.vmware.openstack.admin.doc/GUID-7D4EF366-3945-44F1-8B2C-B33BBE5E4A28.html?hWord=N4IghgNiBcIJYFsAOB7ATgFxAXyA

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
2025/03/24 15:06
blog.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki