Start a Conversation

Unsolved

This post is more than 5 years old

22091

March 11th, 2016 03:00

v2 .deb gateway installer really broke

So just downloaded v2 and attempted to install it on our test machines.  It appears to die on stage one when trying to install via the gateway .deb on ubuntu.

root@scale1:~# dpkg -i /mnt/odrive/Set\ up\ File/Install\ ISO/Scale\ IO\ 2/ScaleIO_2.0.0_Gateway_for_Linux_Download/emc-scaleio-gateway_2.0-5014.0_amd64.deb

Selecting previously unselected package emc-scaleio-gateway.

(Reading database ... 62591 files and directories currently installed.)

Preparing to unpack .../emc-scaleio-gateway_2.0-5014.0_amd64.deb ...

validating java version

/usr/bin/java

found the Java executable in PATH

applying pattern "openjdk version"

version 18

java platform that was found : OpenJDK 64-Bit Server VM (build 25.72-b15, mixed mode)

Running pre installation verifications

/usr/bin/keytool

found the keytool executable in PATH

/var/lib/dpkg/tmp.ci/preinst: line 113: rpm: command not found

found suffice RAM memory : 16405552

Unpacking emc-scaleio-gateway (2.0-5014.0) ...

Setting up emc-scaleio-gateway (2.0-5014.0) ...

Running post install operations (simulated rpm,install)

/usr/bin/java

/var/lib/dpkg/info/emc-scaleio-gateway.postinst: line 854: strings: command not found

/usr/bin/keytool

keytool error: java.lang.Exception: Key password must be at least 6 characters

Missing argument for option: password

Usage: SioGWTool -- [ ]

Parameters:

                     Command to be executed

                  Possible parameters of the command

Commands:

--help                          Shows a list of the available commands

--reset_password                Resets the GW admin password

--change_lb_passphrase          Changes existing LockBox passphrase or creates a new LockBox

--set_mdm_credentials           Saves MDM user credentials in a LockBox. If explicitly noted, first creates a LockBox

--register_esrs_gateway         Register new esrs gateway

--unregister_esrs_gateway       UnRegister from all esrs gateways

--remove_esrs_gateway           Remove specific esrs gateway

--set_connectin_ip              Set the esrs connect-in ip

--check_esrs_connectivity       Check connection to a registered esrs gateway (probing will be done throughout the servers to find one that can be connected

--update_ssh_key                Updates the SSH key used for the communication via SSH (which is an alternative for credentials)

--remove_ssh_key                Removes the SSH key used for the communication via SSH (which is an alternative for credentials)

--set_ldap_properties           Saves the LDAP properties in a LockBox. If explicitly noted, first creates a LockBox

Note: To show a list of internal commands use --help --internal

keytool error: java.lang.Exception: Keystore file does not exist: /opt/emc/scaleio/gateway/conf/certificates/.keystore

Installing the web server service/process to run as root(default).

To run as a different user, define the variable GATEWAY_RUN_USER.

chmod: cannot access â/opt/emc/scaleio/gateway/conf/certificates/.keystoreâ: No such file or directory

2

Creating service file /etc/init/scaleio-gateway.conf

Creating service file /opt/emc/scaleio/gateway/bin/scaleio-gateway-wd.bash

gateway user  : root

Creating service file /etc/init.d/scaleio-gateway

4

Adding system startup for /etc/init.d/scaleio-gateway ...

   /etc/rc0.d/K20scaleio-gateway -> ../init.d/scaleio-gateway

   /etc/rc1.d/K20scaleio-gateway -> ../init.d/scaleio-gateway

   /etc/rc6.d/K20scaleio-gateway -> ../init.d/scaleio-gateway

   /etc/rc2.d/S20scaleio-gateway -> ../init.d/scaleio-gateway

   /etc/rc3.d/S20scaleio-gateway -> ../init.d/scaleio-gateway

   /etc/rc4.d/S20scaleio-gateway -> ../init.d/scaleio-gateway

   /etc/rc5.d/S20scaleio-gateway -> ../init.d/scaleio-gateway

/etc/init.d/scaleio-gateway: line 92: systemctl: command not found

The EMC ScaleIO Gateway is running. PID=8156.

root@scale1:~#

As well as the highlighted issues of its attempting to use RPM there's also the below issues.

  • Installer it also requires binutils installing to resolve the strings issue (no mention of this in any of the installer guides).
  • Keytool/installer script doesn't create /opt/emc/scaleio/gateway/conf/certificates/.keystore so you have to create it yourself manually and chmod it.
  • Installer attepting to use "systemctl" to start the services etc this should be sysctl instead to match ubuntu's bin name

At current I've managed to resolve a few issues however creating an alias for sytemctl to sysctl doesn't appear to work and so at current I've been unable to finish the install.  It thinks the gateway service is running/listening but its clearly not installed correctly as the web gui is inaccessible and never loads and for some reason it insists on keeping to attempt to listed on the ipv6 (non-configured!) default IP rather than the static assigned ipv4 address.

Has anyone else managed to get the .deb installer working yet?

24 Posts

March 11th, 2016 06:00

Hi Hinch,

The included documentation covers the required parameters for running the Gateway setup on Ubuntu on page 64 of the Deployment Guide. I noticed your install command did not follow this syntax. Also, it seems that Ubuntu installation needs a good bit more manual work for the deployment through the Installation Manager (driver.conf file setup and other things listed in the deployment guide).

Aliasing sysctl to a systemctl command doesn't work because they are very different programs. systemctl is part of the systemd init environment which isn't fully installed by default on 14.04 (shipped with Upstart init manager instead).

I may poke around with the deb installer as well on 14.04 and 14.10 to see what else is off.

FWIW, I have had no issues deploying v2 on RHEL 7 yesterday. Hopefully we can get the Ubuntu support off the ground.

Cheers!

9 Posts

March 11th, 2016 07:00

I used the quick start guide linux pdf from the downloads section and copied the commands from there (its the 13 page pdf not the 202 page one) if they're different from the full 202 page deployment guide then that'll be one of the issues.

The other issue is the the quick start says something like "dpkg -U /path/scaleio_gateway.deb" etc which is wrong as dpkg doesn't have a -U flag that is rpm. it should be dpkg -i

As for the alias not working your init script simply calls "systemctl start" which alias's perfectly over "sysctl start" they both provide the same functionality so I assumed it would work for that call clearly it didn't.

I've given up on the ubuntu for now as its just a nightmare to even attempt to make the installer work at current, have swapped over the 3 test nodes to centos 7 and its gone on fine fully up and running now I'm just trying to wkr out where the --map_volume_to_scsi_initiator has vanished to in v2 as it appears to be no longer valid

24 Posts

March 11th, 2016 09:00

BTW, I don't work for EMC. I'm just another interested user

I downloaded Ubuntu 14.04 Server and loaded it up in a VM with only the SSH server bundle enabled for install.

After install, I added numactl, bash-completion, and libaio1 packages to the installation.

I then added the Oracle Java 8 runtime by using the webupd8team ppa and installing it using the Oracle installer (since openJDK 8 is not available for 14.04).

I ran the gateway installation using the recommended syntax from the Deployment Guide (pg 64). However, like you mentioned, the Tomcat instance did not listen on IPv4, just IPv6. A quick google showed this is an issue with Java's default preference toward using IPv6 if it's available. To adjust the Java preferences, I edited the file at /opt/emc/scaleio/gateway/bin/setenv.sh and added two more parameters to the line for CATALINA_OPTS=

The two added parameters were "-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true". After this I restarted the ScaleIO Gateway using "service scaleio-gateway restart" and confirmed it is now listening on IPv4 addresses. I was able to browse to the Gateway interface and move forward with the installation process.

I agree this should be noted in the deployment guide or fixed as part of the install. I did also get the systemctl error and the rpm error but those didn't seem to cause any problems.

Hope this helps!

51 Posts

March 11th, 2016 18:00

hinch,

Binutils looks to be the main issue.  A fresh/clean install of the gateway would likely succeed.

I just tested this on a fresh Ubuntu Server 14.04.3 install (with binutils present) and despite the complaints of rpm and systemctl not being found, the web installer was running and accessible.

9 Posts

March 12th, 2016 07:00

I think there's a whole host of issues that really need sorting and certainly the documentation needs improving.  It would also be nice if I could get a definite answer as to what has happened to iscsi in version 2 as they seem to have been completely removed from what I can tell but with no documentation regarding it.

9 Posts

March 12th, 2016 07:00

Interesting that the setenv changes worked for you I attempted the same thing and it didn't make much difference.

March 13th, 2016 01:00

dpkg -U is indeed a typo,thank you for noticing, we will correct it.

I don't see that you used the 'GATEWAY_ADMIN_PASSWORD' parameter as requested -> we re-tested it and it's not what's causing the failures you see.

Seems like the binutils is indeed mandatory. How come it was missing on your server? I thought it comes with Ubuntu 14.04 out of the box...

Taken from the Quick Start Guide:

Run the following command (all on one line): GATEWAY_ADMIN_PASSWORD= dpkg -U /tmp/ EMC-ScaleIO-gateway-2.0-XXX.X.deb, where new_GW_admin_password is a password that you define to access the IM.

As for the iSCSI commands they are no longer supported, even before 2.0, since we stopped supported running the SDC on ScaleIO VMs (SDC runs on the ESXi host since v1.32).

the systemctl error printout is a redundant error that can be ignored (not bad impact here). This issue will be fixed as part of 2.0.0.1 (v2.0 Patch1).

9 Posts

March 13th, 2016 03:00

I just copied a different attempt to install line thats all I tried setting the parameter as in the quick start chained through I also tried setting it as an export prior to run then just running dkpg stand alone (this is the version I copied)  makes no difference.

No bin utils doesn't get installed out of the box on 14.04 or 15.xx server.

If you've removed iscsi and moved it in to a plugin for esxi then how are we supposed to use scaleio as general storage or hook it in to a different hypervisor  that isn't esxi.  For example I use xenserver and KVM/QEMU without iscsi it I would assume I can no longer use scaleio ?

March 13th, 2016 07:00

ScaleIO 2.0 can be installed on XEN 6.5 server (tested and approved) and there's no need for iSCSI ScaleIO commands.

Please explain...

51 Posts

March 13th, 2016 10:00

hinch,

Looking deeper, I see that binutils was not installed by default on 14.04.3, but as a pre-dependency of oracle-java8-installer. (Found at the webupd8 PPA as mentioned above.)


I'll pass this info along and make sure it's addressed.

51 Posts

March 13th, 2016 10:00

hinch,

To use ScaleIO with Xen or KVM, etc., you install the ScaleIO components in the hypervisor's OS and map volumes to the hypervisor's OS SDCs. These volumes will show up as /dev/scinia, /dev/scinib, etc, which you can then configure in Xen.

9 Posts

March 14th, 2016 01:00

Don't suppose you've got a brief guide / step by step for this or at least an architecture map of how this all works?

I'm struggling to get my head around how it all works together simple things like how to install sdc only on a hypervisor os.

EDIT:

Just been reading the User Guide and from my basic understanding its describing running scaleio within the actual hypervisors.  I'm running scaleio on centos on bare metal the hypervisors are on different machines as I didn't want the overhead of running the storage in vm's also.

9 Posts

March 14th, 2016 04:00

Little update:

Yay I got SDC's running on both xen hosts, after much fighting with sio not accepting multiple sdc mapping of volumes via command line (works fine via GUI though!) I got the SR setup in my xen pool for the test nodes.

Got a test vm installed and running off the SR just fine.  Only problem I seem to have now is HA isn't working xen won't let me configure HA as it seems to think that the SR doesn't support it not sure why at the moment am open to any suggestions though.

March 14th, 2016 04:00

So you just need to install the ScaleIO SDC on your XEN hypervisors (there are specific artifacts for XEN 6.5), either by using the Installation Manager, or manually.

All options are described in the v2.0 Deployment guide / User guide.

March 14th, 2016 07:00

Hi,

I refer you to pages 455-456 in the User Guide -> Headline: Xen v6.5 High Availability

Note that steps 2-5 might be redundant in v2.0, but no harm in checking the rules exist with the proper configuration.

Thanks,

Tomer

No Events found!

Top