Hi Mark and thanks.
   
  That sounds reasonable.  However, I was hoping there was something analous to 
a restore, that would allow me to drop the now defunct repository and rename 
the snapshot repository to the original name. 
   
  Is there at least a way to give the snapshot a name, other than
   
  "Jay_Demo_Repo(snapshot Tue Apr 29 17:16:07 20" ?
   
  I tried running repoman -s on that repo (the first snapshot) and it failed 
with numerous errors...
   
  [EMAIL PROTECTED] tmp]# repoman -s -r "Jay_Demo_Repo(snapshot Tue Apr 29 
17:16:07 20"
Traceback (most recent call last):
  File "/opt/kusu/bin/repoman", line 484, in ?
    app.run()
  File "/opt/kusu/bin/repoman", line 281, in run
    self.parseArgs()
  File "/opt/kusu/bin/repoman", line 361, in parseArgs
    self.snapshot(options.reponame)
  File "/opt/kusu/bin/repoman", line 259, in snapshot
    newRepo.flush()
  File "/opt/kusu/lib/python/sqlalchemy/ext/assignmapper.py", line 20, in do
    return getattr(session, name)(self, *args, **kwargs)
  File "/opt/kusu/lib/python/sqlalchemy/orm/session.py", line 302, in flush
    self.uow.flush(self, objects)
  File "/opt/kusu/lib/python/sqlalchemy/orm/unitofwork.py", line 219, in flush
    flush_context.execute()
  File "/opt/kusu/lib/python/sqlalchemy/orm/unitofwork.py", line 409, in execute
    UOWExecutor().execute(self, head)
  File "/opt/kusu/lib/python/sqlalchemy/orm/unitofwork.py", line 1027, in 
execute
    self.execute_save_steps(trans, task)
  File "/opt/kusu/lib/python/sqlalchemy/orm/unitofwork.py", line 1046, in 
execute_save_steps
    self.execute_childtasks(trans, task, False)
  File "/opt/kusu/lib/python/sqlalchemy/orm/unitofwork.py", line 1064, in 
execute_childtasks
    self.execute(trans, child, isdelete)
  File "/opt/kusu/lib/python/sqlalchemy/orm/unitofwork.py", line 1027, in 
execute
    self.execute_save_steps(trans, task)
  File "/opt/kusu/lib/python/sqlalchemy/orm/unitofwork.py", line 1041, in 
execute_save_steps
    self.save_objects(trans, task)
  File "/opt/kusu/lib/python/sqlalchemy/orm/unitofwork.py", line 1032, in 
save_objects
    task.mapper.save_obj(task.polymorphic_tosave_objects, trans)
  File "/opt/kusu/lib/python/sqlalchemy/orm/mapper.py", line 1182, in save_obj
    c = connection.execute(statement, params)
  File "/opt/kusu/lib/python/sqlalchemy/engine/base.py", line 509, in execute
    return Connection.executors[c](self, object, *multiparams, **params)
  File "/opt/kusu/lib/python/sqlalchemy/engine/base.py", line 549, in 
execute_clauseelement
    return self.execute_compiled(elem.compile(dialect=self.dialect, 
parameters=param), *multiparams, **params)
  File "/opt/kusu/lib/python/sqlalchemy/engine/base.py", line 560, in 
execute_compiled
    self._execute_raw(context)
  File "/opt/kusu/lib/python/sqlalchemy/engine/base.py", line 573, in 
_execute_raw
    self._execute(context)
  File "/opt/kusu/lib/python/sqlalchemy/engine/base.py", line 591, in _execute
    raise exceptions.SQLError(context.statement, context.parameters, e)
sqlalchemy.exceptions.SQLError: (IntegrityError) (1062, "Duplicate entry 
'Jay_Demo_Repo(snapshot Tue Apr 29 17:16:07 20' for key 2") u'INSERT INTO repos 
(reponame, repository, installers, ostype) VALUES (%s, %s, %s, %s)' 
['Jay_Demo_Repo(snapshot Tue Apr 29 17:16:07 20(snapshot Wed Apr 30 13:30:59 
2008)', None, '192.168.129.10;172.20.0.1', 'centos-5-x86_64']


Mark Black <[EMAIL PROTECTED]> wrote:
  Hi Jay

It sounds like you made a snapshot, then applied a change to your main 
repository. If this is the case then you can:
1. Run ngedit and edit the affected node group, and change the repository to 
use to the snapshot.
2. Run: boothost -r -n {Name of nodegroup} to re-install the nodes in the 
affected nodegroup.


Mark

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jay
Sent: Wednesday, April 30, 2008 1:43 PM
To: [email protected]
Subject: [Kusu-users] repoman - snapshot / reversion


How do I revert to a snapshot of my repository?

Thanks,

Jay


---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
_______________________________________________
Kusu-users mailing list
[email protected]
http://mail.osgdc.org/mailman/listinfo/kusu-users
_______________________________________________
Kusu-users mailing list
[email protected]
http://mail.osgdc.org/mailman/listinfo/kusu-users


       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
_______________________________________________
Kusu-users mailing list
[email protected]
http://mail.osgdc.org/mailman/listinfo/kusu-users

Reply via email to