Wednesday, February 19, 2014

Eucalyptus Snapshot issues

A little background:
Company and location of the Cloud were removed intentionally.
Version:            3.2.2
Environment:     Full HA
Data Storage: SAN (Dell Equallogic)

There are two issues related to Snapshots as elaborated below with resolutions. Please note that there could be multiple reasons but in this case only the resolution which were tried to fix the issues were only discussed.

Issue(s):

A.    Snapshot goes to pending state when it is deleted immediately after its creation i.e. while it was still in 
        pending state and was in the process to completion.

B.    Creating new snapshots fails.

Resolution to issue A:
1.      Stop SC service on the disabled one and wait till it comes to NOTREADY state.
# service eucalyptus-cloud stop
From the CLC, check the status using;
# euca-describe-services
or,
# euca_conf --list-sc

2.      Restart SC service on the enabled one and wait till it comes to ENABLED state.
# service eucalyptus-cloud restart
From the CLC, check the status using;
# euca-describe-services
or,
# euca_conf --list-sc

Note: The above action would clear the pending snapshot from the DB.

Resolution to issue B:

1.      Modify /usr/share/eucalyptus/connect_iscsitarget_main.pl on SC with the following entry;
        $ip = "sandatahost";

2.      Modify /usr/share/eucalyptus/disconnect_iscsitarget_main.pl with the following entry;
        $ip = "sandatahost"

3.   Add the "sandatahost" info in /etc/hosts on SC as;
        <IP of sandatahost> sandatahost

4.      Remove the IPTABLE rule on SC for SAN management port as;
        iptables -t nat -D OUTPUT -p tcp -m tcp --dport 3260 -j DNAT --to-destination <IP of
        sandatahost>:3260

Note: The above actions re-established the connection between SC and Database (SAN). And, this resolved the 
           issue of Snapshot Creation.

No comments:

Post a Comment