Simone Tiraboschi has posted comments on this change. Change subject: packaging: setup: saving the configuration on the shared domain ......................................................................
Patch Set 15: Verified+1 Verified with from ovirt_hosted_engine_setup import constants as ohostedcons from ovirt_hosted_engine_setup import heconflib from ovirt_hosted_engine_setup import util as ohostedutil import logging _CONF_FILES = [ ohostedcons.FileLocations.HECONFD_VERSION, ohostedcons.FileLocations.HECONFD_ANSWERFILE, ohostedcons.FileLocations.HECONFD_HECONF, ohostedcons.FileLocations.HECONFD_BROKER_CONF, ohostedcons.FileLocations.HECONFD_VM_CONF, ] sdUUID = '906222d7-7337-4b0b-b5fe-45073b1c9590' conf_volume_UUID = '6e915f0a-c76c-446f-b474-be5a59af0366' conf_image_UUID = 'd595b98f-e600-4768-8acb-272cb4c9f077' logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) dest = ohostedutil.get_volume_path( 'nfs4', sdUUID, conf_image_UUID, conf_volume_UUID, ) print(dest) print('valid: ' + str(heconflib.validateConfImage(logger, dest))) for f in _CONF_FILES: print('-:-{f}-:-'.format(f=f)) print(heconflib.extractConfFile(logger, dest, f)) With reports: /rhev/data-center/mnt/192.168.1.115:_Virtual_exthe7/906222d7-7337-4b0b-b5fe-45073b1c9590/images/d595b98f-e600-4768-8acb-272cb4c9f077/6e915f0a-c76c-446f-b474-be5a59af0366 valid: True -:-version-:- 1.3.0-0.0.master -:-fhanswers.conf-:- [environment:default] OVEHOSTED_CORE/screenProceed=none:None OVEHOSTED_CORE/deployProceed=bool:True OVEHOSTED_CORE/confirmSettings=bool:True OVEHOSTED_NETWORK/fqdn=str:topolino.localdomain OVEHOSTED_NETWORK/bridgeName=str:ovirtmgmt OVEHOSTED_NETWORK/firewallManager=str:iptables OVEHOSTED_NETWORK/gateway=str:192.168.1.1 OVEHOSTED_ENGINE/clusterName=str:Default OVEHOSTED_STORAGE/storageDatacenterName=str:hosted_datacenter OVEHOSTED_STORAGE/domainType=str:nfs4 OVEHOSTED_STORAGE/connectionUUID=str:ec4ebf7a-54cc-4f8c-bcac-1c5653f74c51 OVEHOSTED_STORAGE/glusterBrick=none:None OVEHOSTED_STORAGE/imgAlias=str:hosted_engine OVEHOSTED_STORAGE/LunID=none:None OVEHOSTED_STORAGE/imgSizeGB=int:10 OVEHOSTED_STORAGE/iSCSIPortalIPAddress=none:None OVEHOSTED_STORAGE/metadataVolumeUUID=str:ed7ef95d-2977-4113-9972-3da1cde110da OVEHOSTED_STORAGE/sdUUID=str:906222d7-7337-4b0b-b5fe-45073b1c9590 OVEHOSTED_STORAGE/iSCSITargetName=none:None OVEHOSTED_STORAGE/glusterProvisionedShareName=str:hosted_engine_glusterfs OVEHOSTED_STORAGE/metadataImageUUID=str:5e12c5dc-256b-46c9-8fc2-f26f266d19a5 OVEHOSTED_STORAGE/lockspaceVolumeUUID=str:946e89d1-2d5e-4b29-9737-7cdb237192c8 OVEHOSTED_STORAGE/iSCSIPortalPort=none:None OVEHOSTED_STORAGE/imgUUID=str:c00e477d-97bb-4cf9-95e0-a02232d84e26 OVEHOSTED_STORAGE/confImageUUID=str:d595b98f-e600-4768-8acb-272cb4c9f077 OVEHOSTED_STORAGE/spUUID=str:029c8ec6-0bb3-4e02-a2e1-2f23be68fee3 OVEHOSTED_STORAGE/lockspaceImageUUID=str:f793124b-34a4-4801-8bdf-c8511a5930be OVEHOSTED_STORAGE/storageDomainName=str:hosted_storage OVEHOSTED_STORAGE/glusterProvisioningEnabled=bool:False OVEHOSTED_STORAGE/volUUID=str:859a498a-5e7b-4dc0-af59-4de015c562ee OVEHOSTED_STORAGE/iSCSIPortal=none:None OVEHOSTED_STORAGE/storageType=none:None OVEHOSTED_STORAGE/vgUUID=none:None OVEHOSTED_STORAGE/confVolUUID=str:6e915f0a-c76c-446f-b474-be5a59af0366 OVEHOSTED_STORAGE/storageDomainConnection=str:192.168.1.115:/Virtual/exthe7 OVEHOSTED_STORAGE/iSCSIPortalUser=none:None OVEHOSTED_VM/nicUUID=str:eac0fe39-42ad-4d54-880c-a014b6dbf7b5 OVEHOSTED_VDSM/consoleType=str:vnc OVEHOSTED_VM/vmMemSizeMB=str:4096 OVEHOSTED_VM/vmUUID=str:67f3f110-f076-4802-b9e2-077a537849f4 OVEHOSTED_VM/vmMACAddr=str:00:16:3e:74:e7:71 OVEHOSTED_VM/emulatedMachine=str:pc OVEHOSTED_VM/consoleUUID=str:954ecc46-d57b-449a-ad7d-0a24f85faf1f OVEHOSTED_VM/vmBoot=str:disk OVEHOSTED_VM/vmVCpus=str:4 OVEHOSTED_VM/cdromUUID=str:fb67e5c3-0e90-4073-b5f7-a43933954f32 OVEHOSTED_VM/ovfArchive=str:/mnt/ovirt.ova OVEHOSTED_VM/vmCDRom=str:/tmp/tmpiUv4Dc/seed.iso OVEHOSTED_VM/automateVMShutdown=bool:True OVEHOSTED_VM/cloudinitInstanceDomainName=str:localdomain OVEHOSTED_VM/cloudinitExecuteEngineSetup=bool:True OVEHOSTED_VM/cloudinitInstanceHostName=str:topolino.localdomain OVEHOSTED_VM/cloudinitVMStaticCIDR=str:192.168.1.184/24 OVEHOSTED_VM/cloudInitISO=str:generate OVEHOSTED_VM/cloudinitVMETCHOSTS=bool:True OVEHOSTED_VM/cloudinitVMDNS=str:192.168.1.1 OVEHOSTED_VDSM/spicePkiSubject=str:O=localdomain, CN=c71ghe1.localdomain OVEHOSTED_VDSM/pkiSubject=str:/C=EN/L=Test/O=Test/CN=Test OVEHOSTED_VDSM/caSubject=str:/C=EN/L=Test/O=Test/CN=TestCA OVEHOSTED_VDSM/cpu=str:model_SandyBridge OVEHOSTED_NOTIF/smtpPort=str:25 OVEHOSTED_NOTIF/smtpServer=str:localhost OVEHOSTED_NOTIF/sourceEmail=str:root@localhost OVEHOSTED_NOTIF/destEmail=str:root@localhost -:-hosted-engine.conf-:- fqdn=topolino.localdomain vm_disk_id=c00e477d-97bb-4cf9-95e0-a02232d84e26 vmid=67f3f110-f076-4802-b9e2-077a537849f4 storage=192.168.1.115:/Virtual/exthe7 conf=/etc/ovirt-hosted-engine/vm.conf host_id=1 console=vnc domainType=nfs4 spUUID=029c8ec6-0bb3-4e02-a2e1-2f23be68fee3 sdUUID=906222d7-7337-4b0b-b5fe-45073b1c9590 connectionUUID=ec4ebf7a-54cc-4f8c-bcac-1c5653f74c51 ca_cert=/etc/pki/vdsm/libvirt-spice/ca-cert.pem ca_subject="O=localdomain, CN=c71ghe1.localdomain" vdsm_use_ssl=true gateway=192.168.1.1 bridge=ovirtmgmt metadata_volume_UUID=ed7ef95d-2977-4113-9972-3da1cde110da metadata_image_UUID=5e12c5dc-256b-46c9-8fc2-f26f266d19a5 lockspace_volume_UUID=946e89d1-2d5e-4b29-9737-7cdb237192c8 lockspace_image_UUID=f793124b-34a4-4801-8bdf-c8511a5930be conf_volume_UUID=6e915f0a-c76c-446f-b474-be5a59af0366 conf_image_UUID=d595b98f-e600-4768-8acb-272cb4c9f077 # The following are used only for iSCSI storage iqn= portal= user= password= port= -:-broker.conf-:- [email] smtp-server = localhost smtp-port = 25 destination-emails = root@localhost source-email = root@localhost [notify] state_transition = maintenance|start|stop|migrate|up|down -:-vm.conf-:- vmId=67f3f110-f076-4802-b9e2-077a537849f4 memSize=4096 display=vnc devices={index:2,iface:ide,address:{ controller:0, target:0,unit:0, bus:1, type:drive},specParams:{},readonly:true,deviceId:fb67e5c3-0e90-4073-b5f7-a43933954f32,path:,device:cdrom,shared:false,type:disk} devices={index:0,iface:virtio,format:raw,poolID:00000000-0000-0000-0000-000000000000,volumeID:859a498a-5e7b-4dc0-af59-4de015c562ee,imageID:c00e477d-97bb-4cf9-95e0-a02232d84e26,specParams:{},readonly:false,domainID:906222d7-7337-4b0b-b5fe-45073b1c9590,optional:false,deviceId:c00e477d-97bb-4cf9-95e0-a02232d84e26,address:{bus:0x00, slot:0x06, domain:0x0000, type:pci, function:0x0},device:disk,shared:exclusive,propagateErrors:off,type:disk,bootOrder:1} devices={device:scsi,model:virtio-scsi,type:controller} devices={nicModel:pv,macAddr:00:16:3e:74:e7:71,linkActive:true,network:ovirtmgmt,filter:vdsm-no-mac-spoofing,specParams:{},deviceId:eac0fe39-42ad-4d54-880c-a014b6dbf7b5,address:{bus:0x00, slot:0x03, domain:0x0000, type:pci, function:0x0},device:bridge,type:interface} devices={device:console,specParams:{},type:console,deviceId:954ecc46-d57b-449a-ad7d-0a24f85faf1f,alias:console0} vmName=HostedEngine spiceSecureChannels=smain,sdisplay,sinputs,scursor,splayback,srecord,ssmartcard,susbredir smp=4 cpuType=SandyBridge emulatedMachine=pc -- To view, visit https://gerrit.ovirt.org/42052 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I1096aa6eabf97ac9cf9b032d0ac57fd8f63c2924 Gerrit-PatchSet: 15 Gerrit-Project: ovirt-hosted-engine-setup Gerrit-Branch: master Gerrit-Owner: Simone Tiraboschi <stira...@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Lev Veyde <lve...@redhat.com> Gerrit-Reviewer: Martin Sivák <msi...@redhat.com> Gerrit-Reviewer: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: Sandro Bonazzola <sbona...@redhat.com> Gerrit-Reviewer: Simone Tiraboschi <stira...@redhat.com> Gerrit-Reviewer: Yedidyah Bar David <d...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-HasComments: No _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches