After upgrade Lucid->Maverick, Eucalyptus database seems not to have been upgraded

Bug #646100 reported by C de-Avillez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Eucalyptus
Invalid
Undecided
Unassigned
eucalyptus (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Basically:
1. images are lost (not yet known if still on disc)
2. admin credentials must be refreshed (sudo euca_conf --get-credentials must be re-run).

During a conference call, Dmitrii suggested this might be related to the euca DB not being upgraded, and asked to also verify groups, users, and keypairs (for completeness) -- but I forgot to create additional groups and keypairs and users...

Revision history for this message
C de-Avillez (hggdh2) wrote :
Download full text (3.6 KiB)

1. the admin credentials changed:

ubuntu@cempedak:~$ cat eucarc
EUCA_KEY_DIR=$(dirname $(readlink -f ${BASH_SOURCE}))
export S3_URL=http://10.55.55.2:8773/services/Walrus
export EC2_URL=http://10.55.55.2:8773/services/Eucalyptus
export EC2_PRIVATE_KEY=${EUCA_KEY_DIR}/euca2-admin-2cabb318-pk.pem
export EC2_CERT=${EUCA_KEY_DIR}/euca2-admin-2cabb318-cert.pem
export EC2_JVM_ARGS=-Djavax.net.ssl.trustStore=${EUCA_KEY_DIR}/jssecacerts
export EUCALYPTUS_CERT=${EUCA_KEY_DIR}/cloud-cert.pem
export EC2_ACCESS_KEY='WKy3rMzOWPouVOxK1p3Ar1C2uRBwa2FBXnCw'
export EC2_SECRET_KEY='uZIpwxvhbgU5R99tD7wnGshAnOJ8JUavazimMA'
# This is a bogus value; Eucalyptus does not need this but client tools do.
export EC2_USER_ID='000100729354'
alias ec2-bundle-image="ec2-bundle-image --cert ${EC2_CERT} --privatekey ${EC2_PRIVATE_KEY} --user 000100729354 --ec2cert ${EUCALYPTUS_CERT}"
alias ec2-upload-bundle="ec2-upload-bundle -a ${EC2_ACCESS_KEY} -s ${EC2_SECRET_KEY} --url ${S3_URL} --ec2cert ${EUCALYPTUS_CERT}"
ubuntu@cempedak:~$ . eucarc
ubuntu@cempedak:~$ euca-describe-groups
Warning: failed to parse error message from AWS: <unknown>:1:0: syntax error
EC2ResponseError: 403 Forbidden
Failure: 403 Forbidden
Login Failure: all modules ignored

ubuntu@cempedak:~$ sudo euca_conf --get-credentials admin-v2.0.zip
--2010-09-23 13:53:31-- https://localhost:8443/getX509?user=admin&code=zBbfEPEwkCwV2JgPR8HPlgR7P4b2yaCNFR6jxrurMc5BhZmcLit6Y5j3jWhJGIJFwsemMaubWW1R0PmzQw
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:8443... failed: Connection refused.
Connecting to localhost|127.0.0.1|:8443... connected.
WARNING: cannot verify localhost's certificate, issued by `/C=US/ST=CA/L=Santa Barbara/O=db/OU=Eucalyptus/CN=localhost':
  Self-signed certificate encountered.
HTTP request sent, awaiting response... 200 OK
Length: 5019 (4.9K) [application/zip]
Saving to: `admin-v2.0.zip'

100%[===================================================================================================================================================================================================================================================================================>] 5,019 --.-K/s in 0s

2010-09-23 13:53:32 (551 MB/s) - `admin-v2.0.zip' saved [5019/5019]

ubuntu@cempedak:~$ unzip admin-v2.0.zip
Archive: admin-v2.0.zip
To setup the environment run: source /path/to/eucarc
replace eucarc? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
  inflating: eucarc
  inflating: cloud-cert.pem
  inflating: jssecacerts
  inflating: euca2-admin-121ecd79-pk.pem
  inflating: euca2-admin-121ecd79-cert.pem
ubuntu@cempedak:~$ cat eucarc
EUCA_KEY_DIR=$(dirname $(readlink -f ${BASH_SOURCE}))
export S3_URL=http://10.55.55.2:8773/services/Walrus
export EC2_URL=http://10.55.55.2:8773/services/Eucalyptus
export EC2_PRIVATE_KEY=${EUCA_KEY_DIR}/euca2-admin-121ecd79-pk.pem
export EC2_CERT=${EUCA_KEY_DIR}/euca2-admin-121ecd79-cert.pem
export EC2_JVM_ARGS=-Djavax.net.ssl.trustStore=${EUCA_KEY_DIR}/jssecacerts
export EUCALYPTUS_CERT=${EUCA_KEY_DIR}/cloud-cert.pem
export EC2_ACCESS_KEY='WKy3rMzOWPouVOxK1p3Ar1C2uRBwa2FBXnCw'
export EC2_SECRET_KEY='85RMpg3PuxeP5...

Read more...

Revision history for this message
C de-Avillez (hggdh2) wrote :

2. the (single) image I had registered and successfully used on Lucid is not shown anymore on 'euca-describe-images'. The files are there, though (see attachments with 'ls -lR /var/lib/eucalyptus').

Revision history for this message
C de-Avillez (hggdh2) wrote :
Revision history for this message
C de-Avillez (hggdh2) wrote :
Changed in eucalyptus (Ubuntu):
importance: Undecided → High
description: updated
Revision history for this message
C de-Avillez (hggdh2) wrote :

logs pushed to lp:~hggdh2/%2Bjunk/uec-qa/
Pushed up to revision 62.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package eucalyptus - 2.0+bzr1241-0ubuntu3

---------------
eucalyptus (2.0+bzr1241-0ubuntu3) maverick; urgency=low

  * debian/eucalyptus-java-common.{pre|postinst}: Backup /usr/share/eucalytpus
    to enable the euca_upgrade script to be able to properly upgrade
    the components. (LP: #646100, #644759)
  * debian/patches/07-local_support_euca_conf-in.patch:
    - Do not upgrade /etc/eucalyptus/eucalyptus.local.conf as it shouldn't
      contain settings that require updating, and has the undesirable feature
      of disabling eucalyptus network settings. (LP: #644733)
    - Resolved removal of nodes from nodes.list when deregistering a node
      (LP: #640502)
 -- Dave Walker (Daviey) <email address hidden> Mon, 27 Sep 2010 23:41:14 +0100

Changed in eucalyptus (Ubuntu):
status: New → Fix Released
Neil Soman (neilsoman)
Changed in eucalyptus:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.