[ovirt-users] how can i setup hosted engine on the ovirt-node-3.5-201504280933

Sandro Bonazzola sbonazzo at redhat.com
Thu Jul 2 11:53:44 UTC 2015


Il 02/07/2015 12:56, Sandro Bonazzola ha scritto:
> Il 02/07/2015 12:44, Zhong Qiang ha scritto:
>> Hey Sandro,
>>        Thanks for your reply.
>>
>> [root at ovirthost01 ~]# locale
>> LANG=en_US.utf8
>> LC_CTYPE="en_US.utf8"
>> LC_NUMERIC="en_US.utf8"
>> LC_TIME="en_US.utf8"
>> LC_COLLATE="en_US.utf8"
>> LC_MONETARY="en_US.utf8"
>> LC_MESSAGES="en_US.utf8"
>> LC_PAPER="en_US.utf8"
>> LC_NAME="en_US.utf8"
>> LC_ADDRESS="en_US.utf8"
>> LC_TELEPHONE="en_US.utf8"
>> LC_MEASUREMENT="en_US.utf8"
>> LC_IDENTIFICATION="en_US.utf8"
>> LC_ALL=
>>
> 
> tried to reproduce your issue on a clean non-node system and it works fine.

Issue has been found, patch pushed: https://gerrit.ovirt.org/43147



> 
> Fabian, are you able to reproduce on node?
> 
>>
>> 2015-07-02 17:17 GMT+08:00 Sandro Bonazzola <sbonazzo at redhat.com <mailto:sbonazzo at redhat.com>>:
>>
>>     Il 02/07/2015 10:59, Zhong Qiang ha scritto:
>>     > hey Sandro,
>>     >            this is my log:
>>     >
>>     > 2015-07-02 15:51 GMT+08:00 Sandro Bonazzola <sbonazzo at redhat.com <mailto:sbonazzo at redhat.com> <mailto:sbonazzo at redhat.com
>>     <mailto:sbonazzo at redhat.com>>>:
>>     >
>>     >     Il 02/07/2015 05:45, Zhong Qiang ha scritto:
>>     >     > hey,
>>     >     >       I tried two case.
>>     >     > ##################
>>     >     >       case 1:
>>     >     >                 installed ovirt-node-iso-3.5-0.999.201506302311.el7.centos.iso or ovirt-node-iso-3.5-0.999.201507012312.el7.centos.iso , 
>>     and setup
>>     >     > hosted-engine .
>>     >     >                 got error message below:
>>     >     > @@@@@@@@@@@@@@@@@@@@@@@@@@@
>>     >     > [root at ovirthost01 Stor01]# hosted-engine --deploy
>>     >     > [ INFO  ] Stage: Initializing
>>     >     > [ INFO  ] Generating a temporary VNC password.
>>     >     > [ INFO  ] Stage: Environment setup
>>     >     >           Continuing will configure this host for serving as hypervisor and create a VM where you have to install oVirt Engine afterwards.
>>     >     >           Are you sure you want to continue? (Yes, No)[Yes]:
>>     >     >           Configuration files: []
>>     >     >           Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20150702021002-pa9xwr.log
>>     >     >           Version: otopi-1.3.3_master (otopi-1.3.3-0.0.master.20150617163218.gitfc9ccb8.el7)
>>     >     > [ INFO  ] Hardware supports virtualization
>>     >     > [ INFO  ] Stage: Environment packages setup
>>     >     > [ INFO  ] Stage: Programs detection
>>     >     > [ INFO  ] Stage: Environment setup
>>     >     > [ INFO  ] Stage: Environment customization
>>     >     >
>>     >     >           --== STORAGE CONFIGURATION ==--
>>     >     >
>>     >     >           During customization use CTRL-D to abort.
>>     >     >           Please specify the storage you would like to use (iscsi, nfs3, nfs4)[nfs3]:
>>     >     >           Please specify the full shared storage connection path to use (example: host:/path): 10.10.19.99:/volume1/nfsstor
>>     >     >           The specified storage location already contains a data domain. Is this an additional host setup (Yes, No)[Yes]?
>>     >     > [ INFO  ] Installing on additional host
>>     >     >           Please specify the Host ID [Must be integer, default: 2]:
>>     >     >           Please provide storage domain name. [hosted_storage]: hostedStor
>>     >     > [ ERROR ] Failed to execute stage 'Environment customization': Storage domain name cannot be empty. It can only consist of alphanumeric
>>     characters
>>     >     > (that is, letters, numbers, and signs "-" and "_"). All other characters are not valid in the name.
>>     >
>>     >     Can you please provide /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20150702021002-pa9xwr.log?
>>
>>     This is weird.
>>     the storage domain recorded is:
>>     OVEHOSTED_STORAGE/storageDomainName=str:'hostedStor'
>>
>>     and the validation should fail only if it matches _RE_NOT_ALPHANUMERIC = re.compile(r"[^-\w]")
>>
>>     so 'hostedStor' should have been considered valid.
>>     can you please provide 'locale' output?
>>     maybe it's a locale issue.
>>
>>
>>     >
>>     >
>>     >
>>     >     > [ INFO  ] Stage: Clean up
>>     >     > [ INFO  ] Generating answer file '/var/lib/ovirt-hosted-engine-setup/answers/answers-20150702021034.conf'
>>     >     > [ INFO  ] Stage: Pre-termination
>>     >     > [ INFO  ] Stage: Termination
>>     >     > @@@@@@@@@@@@@@@@@@@@@@@@@@@@
>>     >     >
>>     >     > #########################
>>     >     > case 2:
>>     >     >          installed ovirt-node-iso-3.5-0.999.201504280931.el7.centos.iso ,  and setup hosted-engine .
>>     >     >                 got error message below:
>>     >     > @@@@@@@@@@@@@@@@@@@@@@@@@@@@
>>     >     > [root at ovirthost01 ~]# hosted-engine --deploy
>>     >     > [ INFO  ] Stage: Initializing
>>     >     > [ INFO  ] Generating a temporary VNC password.
>>     >     > [ INFO  ] Stage: Environment setup
>>     >     >           Continuing will configure this host for serving as hypervisor and create a VM where you have to install oVirt Engine afterwards.
>>     >     >           Are you sure you want to continue? (Yes, No)[Yes]:
>>     >     >           Configuration files: []
>>     >     >           Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20150702022914-83zr2r.log
>>     >     >           Version: otopi-1.3.1 (otopi-1.3.1-1.el7)
>>     >     > [ INFO  ] Hardware supports virtualization
>>     >     > [ INFO  ] Stage: Environment packages setup
>>     >     > [ INFO  ] Stage: Programs detection
>>     >     > [ INFO  ] Stage: Environment setup
>>     >     > [ INFO  ] Stage: Environment customization
>>     >     >
>>     >     >           --== STORAGE CONFIGURATION ==--
>>     >     >
>>     >     >           During customization use CTRL-D to abort.
>>     >     >           Please specify the storage you would like to use (iscsi, nfs3, nfs4)[nfs3]:
>>     >     >           Please specify the full shared storage connection path to use (example: host:/path): 10.10.19.99:/volume1/nfsstor
>>     >     >           The specified storage location already contains a data domain. Is this an additional host setup (Yes, No)[Yes]? No
>>     >     > [ INFO  ] Installing on first host
>>     >     >           Local storage datacenter name is an internal name and currently will not be shown in engine's admin UI.
>>     >     >           Please enter local datacenter name [hosted_datacenter]:
>>     >     >
>>     >     >           --== SYSTEM CONFIGURATION ==--
>>     >     >
>>     >     >
>>     >     >           --== NETWORK CONFIGURATION ==--
>>     >     >
>>     >     >           Please indicate a nic to set ovirtmgmt bridge on: (p4p1) [p4p1]:
>>     >     >           iptables was detected on your computer, do you wish setup to configure it? (Yes, No)[Yes]:
>>     >     >           Please indicate a pingable gateway IP address [10.10.19.254]:
>>     >     >
>>     >     >           --== VM CONFIGURATION ==--
>>     >     >
>>     >     >           Please specify the device to boot the VM from (cdrom, disk, pxe) [cdrom]: disk
>>     >     >           Please specify path to OVF archive you would like to use [None]: /data/Stor01/oVirt-Engine-Appliance-CentOS-x86_64-7-20150628.74.ova
>>     >     > [ INFO  ] Checking OVF archive content (could take a few minutes depending on archive size)
>>     >     > [ INFO  ] Checking OVF XML content (could take a few minutes depending on archive size)
>>     >     > [WARNING] OVF does not contain a valid image description, using default.
>>     >     > [ ERROR ] Not enough space in the temporary directory
>>     >     >           Please specify path to a temporary directory with at least 10 GB [/tmp]: /data/Stor01/tmp
>>     >     >           Please specify an alias for the Hosted Engine image [hosted_engine]:
>>     >     >           The following CPU types are supported by this host:
>>     >     >                  - model_Nehalem: Intel Nehalem Family
>>     >     >                  - model_Penryn: Intel Penryn Family
>>     >     >                  - model_Conroe: Intel Conroe Family
>>     >     >           Please specify the CPU type to be used by the VM [model_Nehalem]:
>>     >     > [WARNING] Minimum requirements for disk size not met
>>     >     >           You may specify a unicast MAC address for the VM or accept a randomly generated default [00:16:3e:4c:58:c1]:
>>     >     >           Please specify the console type you would like to use to connect to the VM (vnc, spice) [vnc]:
>>     >     >
>>     >     >           --== HOSTED ENGINE CONFIGURATION ==--
>>     >     >
>>     >     >           Enter the name which will be used to identify this host inside the Administrator Portal [hosted_engine_1]:
>>     >     >           Enter 'admin at internal' user password that will be used for accessing the Administrator Portal:
>>     >     >           Confirm 'admin at internal' user password:
>>     >     >           Please provide the FQDN for the engine you would like to use.
>>     >     >           This needs to match the FQDN that you will use for the engine installation within the VM.
>>     >     >           Note: This will be the FQDN of the VM you are now going to create,
>>     >     >           it should not point to the base host or to any other existing machine.
>>     >     >           Engine FQDN: ovirtmgmt.ctcnet.com <http://ovirtmgmt.ctcnet.com> <http://ovirtmgmt.ctcnet.com> <http://ovirtmgmt.ctcnet.com>
>>     >     >           Please provide the name of the SMTP server through which we will send notifications [localhost]:
>>     >     >           Please provide the TCP port number of the SMTP server [25]:
>>     >     >           Please provide the email address from which notifications will be sent [root at localhost]:
>>     >     >           Please provide a comma-separated list of email addresses which will get notifications [root at localhost]:
>>     >     > [ INFO  ] Stage: Setup validation
>>     >     > [WARNING] Cannot validate host name settings, reason: resolved host does not match any of the local addresses
>>     >     > [WARNING] Failed to resolve ovirthost01.ctcnet.com <http://ovirthost01.ctcnet.com> <http://ovirthost01.ctcnet.com>
>>     <http://ovirthost01.ctcnet.com> using DNS, it can be resolved
>>     >     only locally
>>     >     >
>>     >     >           --== CONFIGURATION PREVIEW ==--
>>     >     >
>>     >     >           Bridge interface                   : p4p1
>>     >     >           Engine FQDN                        : ovirtmgmt.ctcnet.com <http://ovirtmgmt.ctcnet.com> <http://ovirtmgmt.ctcnet.com>
>>     <http://ovirtmgmt.ctcnet.com>
>>     >     >           Bridge name                        : ovirtmgmt
>>     >     >           SSH daemon port                    : 22
>>     >     >           Firewall manager                   : iptables
>>     >     >           Gateway address                    : 10.10.19.254
>>     >     >           Host name for web application      : hosted_engine_1
>>     >     >           Host ID                            : 1
>>     >     >           Image alias                        : hosted_engine
>>     >     >           Image size GB                      : 10
>>     >     >           Storage connection                 : 10.10.19.99:/volume1/nfsstor
>>     >     >           Console type                       : vnc
>>     >     >           Memory size MB                     : 16384
>>     >     >           MAC address                        : 00:16:3e:4c:58:c1
>>     >     >           Boot type                          : disk
>>     >     >           Number of CPUs                     : 4
>>     >     >           OVF archive (for disk boot)        : /data/Stor01/oVirt-Engine-Appliance-CentOS-x86_64-7-20150628.74.ova
>>     >     >           CPU Type                           : model_Nehalem
>>     >     >
>>     >     >           Please confirm installation settings (Yes, No)[Yes]:
>>     >     > [ INFO  ] Stage: Transaction setup
>>     >     > [ INFO  ] Stage: Misc configuration
>>     >     > [ INFO  ] Stage: Package installation
>>     >     > [ INFO  ] Stage: Misc configuration
>>     >     > [ INFO  ] Configuring libvirt
>>     >     > [ INFO  ] Configuring VDSM
>>     >     > [ INFO  ] Starting vdsmd
>>     >     > [ INFO  ] Waiting for VDSM hardware info
>>     >     > [ INFO  ] Configuring the management bridge
>>     >     > [ INFO  ] Connected to Storage Domain
>>     >     > [ INFO  ] Connecting Storage Pool
>>     >     > [ INFO  ] Verifying sanlock lockspace initialization
>>     >     > [ INFO  ] Creating VM Image
>>     >     > [ INFO  ] Extracting disk image from OVF archive (could take a few minutes depending on archive size)
>>     >     > [ INFO  ] Validating pre-allocated volume size
>>     >     > [ INFO  ] Image not uploaded to data domain
>>     >     > [ ERROR ] Failed to execute stage 'Misc configuration': Incoherence detected in OVF file: image size 10485760000 does not match declared size
>>     >     10737418240
>>     >
>>     >     Fabian looks like OVF xml is not matching OVA content, can you take a look?
>>     >
>>     > I checked this OVF xml,size is  10485760000 ,and modified the size to 10737418240, and recompress files to xxx.ova.but
>>     > still got this error!
>>     >
>>     >     > [ INFO  ] Stage: Clean up
>>     >     > [ INFO  ] Generating answer file '/var/lib/ovirt-hosted-engine-setup/answers/answers-20150702023715.conf'
>>     >     > [ INFO  ] Stage: Pre-termination
>>     >     > [ INFO  ] Stage: Termination
>>     >     >
>>     >     > @@@@@@@@@@@@@@@@@@@@@@@@@@@@
>>     >     >
>>     >     > 2015-07-01 18:42 GMT+08:00 Fabian Deutsch <fdeutsch at redhat.com <mailto:fdeutsch at redhat.com> <mailto:fdeutsch at redhat.com
>>     <mailto:fdeutsch at redhat.com>> <mailto:fdeutsch at redhat.com <mailto:fdeutsch at redhat.com>
>>     >     <mailto:fdeutsch at redhat.com <mailto:fdeutsch at redhat.com>>>>:
>>     >     >
>>     >     >     ----- Original Message -----
>>     >     >     > Hey,
>>     >     >     >        I can't update ovirt node,get this message:
>>     >     >
>>     >     >     From what to what Node version did you want to upgrade?
>>     >     >
>>     >     >     Upgrades from el6 to el7 are not supported.
>>     >     >
>>     >     >     - fabian
>>     >     >
>>     >     >     > [root at ovirthost1 Stor01]# ovirt-node-upgrade
>>     >     >     > --iso=/data/Stor01/ISOs/ovirt-node-iso-3.5-0.999.201506302311.el7.centos.iso
>>     >     >     > --reboot=1
>>     >     >     > ovirt-node-upgrade.UpgradeTool: INFO     Temporary Directory is:
>>     >     >     > /data/tmpfZC2lU
>>     >     >     > ovirt-node-upgrade.LockFile: INFO     Acquiring Lock
>>     >     >     > ovirt-node-upgrade.UpgradeTool: ERROR    Error: Upgrade Failed: Command
>>     >     >     > Failed: '('mount', '-o', 'loop', '/live/LiveOS/squashfs.img',
>>     >     >     > '/data/tmpfZC2lU/squashfs')' []
>>     >     >     > Traceback (most recent call last):
>>     >     >     >   File "/usr/sbin/ovirt-node-upgrade", line 362, in run
>>     >     >     >     self._extract_rootfs(self._options.iso_file)
>>     >     >     >   File "/usr/sbin/ovirt-node-upgrade", line 206, in _extract_rootfs
>>     >     >     >     squashfs_dir)
>>     >     >     >   File "/usr/sbin/ovirt-node-upgrade", line 145, in _system
>>     >     >     >     raise RuntimeError("Command Failed: '%s' %s" % (command, output))
>>     >     >     > RuntimeError: Command Failed: '('mount', '-o', 'loop',
>>     >     >     > '/live/LiveOS/squashfs.img', '/data/tmpfZC2lU/squashfs')' []
>>     >     >     > ovirt-node-upgrade.UpgradeTool: INFO     Running rollback hooks
>>     >     >     > ovirt-node-upgrade.UpgradeTool: INFO     rollback hooks completed
>>     >     >     > ovirt-node-upgrade.UpgradeTool: INFO     Warning:
>>     >     >     > /data/tmpfZC2lU/rootfs/usr/libexec/ovirt-node/hooks/rollback does not exist
>>     >     >     > ovirt-node-upgrade.UpgradeTool: INFO     Upgrade Failed, Rollback Completed
>>     >     >     > ovirt-node-upgrade.UpgradeTool: INFO     Cleaning up temporary directory
>>     >     >     > ovirt-node-upgrade.UpgradeTool: WARNING  Cleanup Failed
>>     >     >     >
>>     >     >     >
>>     >     >     > thanks
>>     >     >     >
>>     >     >     > --qiang
>>     >     >     >
>>     >     >     > 2015-07-01 15:20 GMT+08:00 Fabian Deutsch <fdeutsch at redhat.com <mailto:fdeutsch at redhat.com> <mailto:fdeutsch at redhat.com
>>     <mailto:fdeutsch at redhat.com>> <mailto:fdeutsch at redhat.com <mailto:fdeutsch at redhat.com>
>>     >     <mailto:fdeutsch at redhat.com <mailto:fdeutsch at redhat.com>>>>:
>>     >     >     >
>>     >     >     > >
>>     >     >     > >
>>     >     >     > > ----- Original Message -----
>>     >     >     > > > hi fabian:
>>     >     >     > > >        I got some error message below.How can i fix this?
>>     >     >     > > >
>>     >     >     > >
>>     >     >     > > Hey
>>     >     >     > >
>>     >     >     > > > [ ERROR ] Not enough space in the temporary directory
>>     >     >     > > >           Please specify path to a temporary directory with at least 10
>>     >     >     > > GB
>>     >     >     > >
>>     >     >     > > You need more space on /tmp - At best you should have 50GB available on /
>>     >     >     > >
>>     >     >     > > > [WARNING] Minimum requirements for disk size not met
>>     >     >     > >
>>     >     >     > > The same as above
>>     >     >     > >
>>     >     >     > > >           Engine FQDN: ovirtmgmt.ctcnet.com <http://ovirtmgmt.ctcnet.com> <http://ovirtmgmt.ctcnet.com>
>>     <http://ovirtmgmt.ctcnet.com>
>>     >     >     > > > [WARNING] Failed to resolve ovirtmgmt.ctcnet.com <http://ovirtmgmt.ctcnet.com> <http://ovirtmgmt.ctcnet.com>
>>     <http://ovirtmgmt.ctcnet.com> using DNS, it can be
>>     >     >     > > > resolved only locally
>>     >     >     > >
>>     >     >     > > The FQDN you use should be resolvable in your network, and it seems as if
>>     >     >     > > this
>>     >     >     > > is not the case.
>>     >     >     > >
>>     >     >     > > > [ INFO  ] Stage: Setup validation
>>     >     >     > > > [WARNING] Cannot validate host name settings, reason: resolved host does
>>     >     >     > > > not match any of the local addresses
>>     >     >     > > > [WARNING] Failed to resolve ovirthost1.ctcnet.com <http://ovirthost1.ctcnet.com> <http://ovirthost1.ctcnet.com>
>>     <http://ovirthost1.ctcnet.com> using DNS, it can be
>>     >     >     > > > resolved only locally
>>     >     >     > >
>>     >     >     > > Same as the previous one.
>>     >     >     > >
>>     >     >     > > > [ ERROR ] Failed to execute stage 'Misc configuration': Incoherence
>>     >     >     > > > detected in OVF file: image size 10485760000 does not match declared size
>>     >     >     > > > 10737418240
>>     >     >     > >
>>     >     >     > > Mh. This is a quite old bug.
>>     >     >     > > Could yo uretry with a more recent iso from:
>>     >     >     > > http://jenkins.ovirt.org/job/ovirt-node_ovirt-3.5_create-iso-el7_merged/
>>     >     >     > >
>>     >     >     > >
>>     >     >     > > Greetings
>>     >     >     > > fabian
>>     >     >     > >
>>     >     >     >
>>     >     >     > _______________________________________________
>>     >     >     > Users mailing list
>>     >     >     > Users at ovirt.org <mailto:Users at ovirt.org> <mailto:Users at ovirt.org <mailto:Users at ovirt.org>> <mailto:Users at ovirt.org
>>     <mailto:Users at ovirt.org> <mailto:Users at ovirt.org <mailto:Users at ovirt.org>>>
>>     >     >     > http://lists.ovirt.org/mailman/listinfo/users
>>     >     >     >
>>     >     >
>>     >     >
>>     >     >
>>     >     >
>>     >     > _______________________________________________
>>     >     > Users mailing list
>>     >     > Users at ovirt.org <mailto:Users at ovirt.org> <mailto:Users at ovirt.org <mailto:Users at ovirt.org>>
>>     >     > http://lists.ovirt.org/mailman/listinfo/users
>>     >     >
>>     >
>>     >
>>     >     --
>>     >     Sandro Bonazzola
>>     >     Better technology. Faster innovation. Powered by community collaboration.
>>     >     See how it works at redhat.com <http://redhat.com> <http://redhat.com>
>>     >
>>     >
>>
>>
>>     --
>>     Sandro Bonazzola
>>     Better technology. Faster innovation. Powered by community collaboration.
>>     See how it works at redhat.com <http://redhat.com>
>>
>>
> 
> 


-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com



More information about the Users mailing list