Hello,
Sorry for the delay. I believe the problem is caused by the
imagerevision ID. The value set for the request is 7 but there is no
entry in the imagerevision table with ID=7. The imagerevision entry for
your new image is 5. Change reservation.imagerevisionid to 5. This
should allow the imaging reservation to proceed.
Hope this helps,
Andy
On 11/24/2010 11:16 AM, Mauricio Cesar Ramirez Torres wrote:
This is the content in my database.
Last login: Tue Nov 23 18:42:53 2010
[r...@vcl ~]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 66394
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql use vcl;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql select * from request;
++-++-+---++--+-+-+-+-+--+---+
| id | stateid | userid | laststateid | logid | forimaging | test |
preload | start | end | daterequested | datemodified | checkuser |
++-++-+---++--+-+-+-+-+--+---+
| 1 | 16 | 1 | 16 | 0 | 1 | 0 | 0 | 2010-11-12 17:10:06 | 2010-11-12
19:10:06 | 2010-11-12 17:10:06 | NULL | 1 |
| 10 | 14 | 1 | 13 | 3 | 0 | 0 | 0 | 2010-11-16 16:45:00 | 2010-11-16
18:00:00 | 2010-11-16 16:54:44 | NULL | 1 |
| 12 | 14 | 1 | 13 | 4 | 0 | 0 | 0 | 2010-11-16 18:45:00 | 2010-11-16
19:15:00 | 2010-11-16 18:01:36 | NULL | 1 |
| 13 | 14 | 2 | 19 | 0 | 0 | 0 | 0 | 2010-11-16 18:45:00 | 2010-11-16
19:05:00 | 2010-11-16 18:52:07 | NULL | 1 |
| 14 | 14 | 1 | 13 | 5 | 0 | 0 | 0 | 2010-11-17 17:15:00 | 2010-11-17
18:00:00 | 2010-11-17 17:22:47 | NULL | 1 |
| 15 | 14 | 1 | 13 | 6 | 0 | 0 | 0 | 2010-11-17 18:15:00 | 2010-11-17
19:00:00 | 2010-11-17 18:26:02 | NULL | 1 |
| 16 | 14 | 1 | 13 | 7 | 0 | 0 | 0 | 2010-11-18 13:30:00 | 2010-11-18
14:15:00 | 2010-11-18 13:32:22 | NULL | 1 |
| 17 | 14 | 1 | 13 | 8 | 0 | 0 | 0 | 2010-11-18 16:30:00 | 2010-11-18
17:15:00 | 2010-11-18 16:32:26 | NULL | 1 |
| 18 | 14 | 1 | 13 | 10 | 0 | 0 | 0 | 2010-11-18 17:30:00 | 2010-11-18
18:00:00 | 2010-11-18 17:01:08 | NULL | 1 |
| 19 | 14 | 1 | 13 | 11 | 0 | 0 | 0 | 2010-11-18 18:15:00 | 2010-11-18
18:45:00 | 2010-11-18 18:09:18 | NULL | 1 |
| 20 | 14 | 1 | 13 | 12 | 0 | 0 | 0 | 2010-11-18 19:00:00 | 2010-11-18
19:45:00 | 2010-11-18 19:09:35 | NULL | 1 |
| 21 | 14 | 1 | 13 | 13 | 0 | 0 | 0 | 2010-11-19 08:30:00 | 2010-11-19
09:15:00 | 2010-11-19 08:38:46 | NULL | 1 |
++-++-+---++--+-+-+-+-+--+---+
12 rows in set (0.00 sec)
mysql select * from reservation;
++---++-+-+--+--+-+--+
| id | requestid | computerid | imageid | imagerevisionid |
managementnodeid | remoteIP | lastcheck | pw |
++---++-+-+--+--+-+--+
| 2 | 1 | 2 | 7 | 7 | 1 | NULL | NULL | NULL |
| 11 | 10 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 13 | 12 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 14 | 13 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 15 | 14 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 16 | 15 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 17 | 16 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 18 | 17 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 19 | 18 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 20 | 19 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 21 | 20 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 22 | 21 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
++---++-+-+--+--+-+--+
12 rows in set (0.00 sec)
mysql select * from computer;
++-+-++++-+-+---++---+-++--+--+++++---+-++---+--+--++--++--+-+--+--+
| id | stateid | ownerid | platformid | scheduleid | currentimageid |
nextimageid | imagerevisionid | RAM | procnumber | procspeed | network |
hostname | IPaddress | privateIPaddress | eth0macaddress |
eth1macaddress | type | provisioningid | drivetype | deleted | notes |
lastcheck | location | dsa | dsapub | rsa | rsapub | host |