<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 4 Feb 2019 at 08:25, Eduardo Gonzalez <<a href="mailto:dabarren@gmail.com">dabarren@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hi Michael,</div><div><br></div><div>You could use a custom image and change the image definition in ansible, ie for define a different image for neutron_server you would add a variable in globals.yml like: <br><table class="gmail-m_5056764343382351997gmail-highlight gmail-m_5056764343382351997gmail-tab-size gmail-m_5056764343382351997gmail-js-file-line-container"><tbody><tr><td id="gmail-m_5056764343382351997gmail-LC264" class="gmail-m_5056764343382351997gmail-blob-code gmail-m_5056764343382351997gmail-blob-code-inner gmail-m_5056764343382351997gmail-js-file-line"><span class="gmail-m_5056764343382351997gmail-pl-s"><span class="gmail-m_5056764343382351997gmail-pl-pds"></span></span><br></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-m_5056764343382351997gmail-highlight gmail-m_5056764343382351997gmail-tab-size gmail-m_5056764343382351997gmail-js-file-line-container"><tbody><tr><td id="gmail-m_5056764343382351997gmail-LC265" class="gmail-m_5056764343382351997gmail-blob-code gmail-m_5056764343382351997gmail-blob-code-inner gmail-m_5056764343382351997gmail-js-file-line"><br></td>
      </tr>
      <tr>
        </tr></tbody></table><span class="gmail-m_5056764343382351997gmail-pl-ent">neutron_server_image_full</span>: <span class="gmail-m_5056764343382351997gmail-pl-s"><span class="gmail-m_5056764343382351997gmail-pl-pds">"registry/repo/image_name:mytag:</span><span class="gmail-m_5056764343382351997gmail-pl-pds">"</span></span></div><div><span class="gmail-m_5056764343382351997gmail-pl-s"><span class="gmail-m_5056764343382351997gmail-pl-pds"><br></span></span></div><div><span class="gmail-m_5056764343382351997gmail-pl-s"><span class="gmail-m_5056764343382351997gmail-pl-pds">If what you are debugin is openstack code, you could use kolla dev mode, where you can change git code locally and mount the code into the python path <a href="https://docs.openstack.org/kolla-ansible/latest/contributor/kolla-for-openstack-development.html" target="_blank">https://docs.openstack.org/kolla-ansible/latest/contributor/kolla-for-openstack-development.html</a><br></span></span></div><div><span class="gmail-m_5056764343382351997gmail-pl-s"><span class="gmail-m_5056764343382351997gmail-pl-pds"><br></span></span></div><div><span class="gmail-m_5056764343382351997gmail-pl-s"><span class="gmail-m_5056764343382351997gmail-pl-pds">Regards</span></span></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span class="gmail_default">Just a warning: I have recently had issues with dev mode because it does not do a pip install, but mounts the source code into the site-packages</span>/<python>/<package><span class="gmail_default"> directory, if there are new source files these will not be included in the package's file manifest. Also this won't affect any files outside of site-packages/</span><python>/<span class="gmail_default"><package></span><span class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">.</span><span class="gmail_default"></span><span class="gmail_default"> I just raised a bug [1] on this.</span></div><div><span class="gmail_default" style="font-family:verdana,sans-serif"><br></span></div><div><span class="gmail_default" style="font-family:verdana,sans-serif">What I often do when developing in a tight-ish loop on a single host is something like this:</span></div><div><span class="gmail_default" style="font-family:verdana,sans-serif"><br></span></div><div><span class="gmail_default" style="font-family:verdana,sans-serif">docker exec -it <container> pip install -e git+https://<repo>#<egg></span></div><div><span class="gmail_default" style="font-family:verdana,sans-serif">docker restart <container></span></div><div><span class="gmail_default" style="font-family:verdana,sans-serif"><br></span></div><div class="gmail_default" style="font-family:verdana,sans-serif">You have to be careful, since if the service doesn't start, the container will fail to start, and docker exec won't work. At that point you need to delete the container and redeploy.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">[1]  <a href="https://bugs.launchpad.net/kolla-ansible/+bug/1814515">https://bugs.launchpad.net/kolla-ansible/+bug/1814515</a></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Mark</div></div></div></div>