<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>And I know "keystone-manage db_sync" does not exist .</div><div><br></div><div>How to sync glance and keystone db?</div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">非淡泊無以明志,非寧靜無以致遠</span>
</div>
<br><div><div>On Nov 7, 2011, at 10:53 PM, Jay Pipes wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 11/07/2011 09:39 AM, mao weijie wrote:<br><blockquote type="cite">Today I git pull the latest nova,glance, keystone and novaclient. Then I<br></blockquote><blockquote type="cite">reinstall them in my production.But I found it cannot work fine with<br></blockquote><blockquote type="cite">older version about one week ago. I use nova-manage db sync.<br></blockquote><blockquote type="cite">Now I have some questions:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1. glance now use like md5 result as id not single number in glance db.<br></blockquote><blockquote type="cite">when I use glance command, it always show error.<br></blockquote><blockquote type="cite">If I need to use the latest version, how can I convert it?<br></blockquote><br>It's actually a UUID identifier now. However, the old integer IDs are just converted to strings in the db_sync, so that should not be an issue...<br><br>What error are you seeing? Something about integer conversion? If so, I'm not sure you have upgraded properly...<br><br><blockquote type="cite">2. in nova db, instances table, I used to set "host" field the nodes<br></blockquote><blockquote type="cite">hostname, now the latest version, If it is exists, error will show about<br></blockquote><blockquote type="cite">" fixed_ref["instance_id"]["host"], then nova-network cannot running.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">3.I use "sudo python setup.py install" each software. Then I kill all<br></blockquote><blockquote type="cite">the processes about nova. and restart them. But libvirt show like<br></blockquote><blockquote type="cite">"Domain not found …… instance xxxxxxxxx". Then all my instances cannot<br></blockquote><blockquote type="cite">be started and I have to delete them. Why it happen?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The important thing I want to know is that if I use git install nova,<br></blockquote><blockquote type="cite">glance, keystone, how to update them safely?<br></blockquote><br>So, if you are using the latest trunks of each project, and not using official packages, you are running a bit of a risk :) Just pointing out the obvious... but generally, the approach you are using above *should* work, as long as you remember to run a db_sync on glance/nova/keystone.<br><br>I don't know why instances would fail to start after an upgrade. Hoping that VIsh might be able to answer that one.<br><br>Cheers,<br>-jay<br></div></blockquote></div><br></body></html>