Bug 1148252 - rhc deployment shows earliest git pushes and not latest for potential rollback
Summary: rhc deployment shows earliest git pushes and not latest for potential rollback
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 2.x
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1152700
TreeView+ depends on / blocked
 
Reported: 2014-10-01 05:15 UTC by Jack
Modified: 2015-05-14 23:37 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1152700 (view as bug list)
Environment:
Last Closed: 2015-02-18 16:51:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jack 2014-10-01 05:15:58 UTC
Description of problem:
I'd like to use 'rhc deployment-list' to see my most recent deployments so that I can rollback but the listing shows only the first deployments that I made after allowing it to store multiple.  Is this a bug or is there some option to see only the latest git pushes?

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. 'rhc deployment-list -a APP'
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Fabiano Franz 2014-10-01 18:13:51 UTC
Unable to reproduce it. I have an app configured to keep 3 deployments and it's correctly removing the older ones when new deployments are created through a git push. So please check if the issue still happens and reopen the bug with more information (particularly the app name and domain) if needed.

ffranz@localhost foo$ rhc show-app foo --configuration
foo @ http://foo-<domain>.rhcloud.com/ (uuid: 012345678901234567890000)
--------------------------------------------------------------------------
  Deployment:        auto (on git push)
  Keep Deployments:  3
  Deployment Type:   git
  Deployment Branch: master

Use 'rhc configure-app' to change the configuration values of this application.

ffranz@localhost foo$ rhc deployments
6:57 PM, deployment 0f19ed46
6:58 PM, deployment 1b6f158d
7:00 PM, deployment 0763188e

ffranz@localhost foo$ vim index.php ; git commit -a -m 'test 1' ; git push origin master
[master 4f1eae9] test 1
 1 file changed, 1 insertion(+), 1 deletion(-)
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 305 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Stopping PHP 5.4 cartridge (Apache+mod_php)
remote: Waiting for stop to finish
remote: Waiting for stop to finish
remote: Waiting for stop to finish
remote: Building git ref 'master', commit 4f1eae9
remote: Checking .openshift/pear.txt for PEAR dependency...
remote: Preparing build for deployment
remote: Deployment id is af5222ea
remote: Activating deployment
remote: Starting PHP 5.4 cartridge (Apache+mod_php)
remote: Application directory "/" selected as DocumentRoot
remote: -------------------------
remote: Git Post-Receive Result: success
remote: Activation status: success
remote: Deployment completed with status: success
To ssh://542c778227418be02d000009.rhcloud.com/~/git/foo.git/
   ca77bce..4f1eae9  master -> master

ffranz@localhost foo$ rhc deployments
6:58 PM, deployment 1b6f158d
7:00 PM, deployment 0763188e
7:09 PM, deployment af5222ea

Comment 2 Jack 2014-10-02 05:49:06 UTC
I can repro.

---
$ rhc app configure -a live

live @ http://live-tmapping.rhcloud.com/ (uuid: 53f57f08500446f30d00045b)
-------------------------------------------------------------------------
  Deployment:        auto (on git push)
  Keep Deployments:  3
  Deployment Type:   git
  Deployment Branch: master

Your application 'live' is configured as listed above.

---
$ rhc deployment list -a live
Aug 24  8:56 PM, deployment bf1acaaa
Aug 24  9:03 PM, deployment 3b5d71ae
Aug 24  9:34 PM, deployment ab6a04dd

These are the first deployments after having set it up which won't help my rollback situation.

Comment 3 Fabiano Franz 2014-10-02 17:50:50 UTC
The default value for 'Keep Deployments' is 1, which means by default no history is kept. Also, 'Keep Deployments' is a configuration of deployments to be stored, not shown, which means it will only start to keep a history *after* you configure your app to keep deployments > 1. Deployments proceeded before that configuration is set will not be shown.

Comment 4 Jack 2014-10-03 06:37:43 UTC
Understood.  

I asked that multiple deployment be kept back on Aug 24 and have had a great many git pushes since then but the 'rhc deployment-list -a live' command shows only the first 3 deployments that I made after asking for multiple to be saved.

This evening I tried to change it with:

> rhc app-configure --keep-deployments 2 -a live

live @ http://live-tmapping.rhcloud.com/ (uuid: 53f57f08500446f30d00045b)
-------------------------------------------------------------------------
  Deployment:        auto (on git push)
  Keep Deployments:  2
  Deployment Type:   git
  Deployment Branch: master

Your application 'live' is now configured as listed above.

--

Then I pushed out a new version.  Then did this:

> rhc deployment-list -a live
Aug 24  8:56 PM, deployment bf1acaaa
Aug 24  9:03 PM, deployment 3b5d71ae
Aug 24  9:34 PM, deployment ab6a04dd

--

I'm still seeing the same deployments after I first ran the command back in August asking for 3 to be saved.  Those were the first 3 deployments made after having asked for 3 to be saved.

Comment 5 Jhon Honce 2014-10-06 17:19:56 UTC
Sorry for the inconvience. I have determined the problem but I require more information to determine the correct and complete solution.  Please provide me with the results of your git push (much like https://bugzilla.redhat.com/show_bug.cgi?id=1148252#c1). Thank you.

Comment 6 Jack 2014-10-07 02:56:00 UTC
git push live
Counting objects: 19, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 764 bytes | 0 bytes/s, done.
Total 10 (delta 9), reused 0 (delta 0)
remote: Stopping Python 2.7 cartridge
remote: Waiting for stop to finish
remote: Waiting for stop to finish
remote: Waiting for stop to finish
remote: Stopping Cron cartridge
remote: Stopping the agent...
remote: Syncing git content to other proxy gears
remote: Building git ref 'master', commit 2ffb3d5
remote: Activating virtenv
remote: Checking for pip dependency listed in requirements.txt file..
remote: You must give at least one requirement to install (see "pip help install")
remote: Running setup.py script..
remote: running develop
remote: running egg_info
remote: creating live.egg-info
remote: writing requirements to live.egg-info/requires.txt
remote: writing live.egg-info/PKG-INFO
remote: writing top-level names to live.egg-info/top_level.txt
remote: writing dependency_links to live.egg-info/dependency_links.txt
remote: writing manifest file 'live.egg-info/SOURCES.txt'
remote: reading manifest file 'live.egg-info/SOURCES.txt'
remote: writing manifest file 'live.egg-info/SOURCES.txt'
remote: running build_ext
remote: Creating /var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/dependencies/python/virtenv/lib/python2.7/site-packages/live.egg-link (link to .)
remote: live 1.0 is already the active version in easy-install.pth
remote: 
remote: Installed /var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/repo
remote: Processing dependencies for live==1.0
remote: Searching for django-recaptcha==1.0.2
remote: Best match: django-recaptcha 1.0.2
remote: Processing django_recaptcha-1.0.2-py2.7.egg
remote: django-recaptcha 1.0.2 is already the active version in easy-install.pth
remote: 
remote: Using /var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/dependencies/python/virtenv/lib/python2.7/site-packages/django_recaptcha-1.0.2-py2.7.egg
remote: Searching for stripe==1.19.0
remote: Best match: stripe 1.19.0
remote: Processing stripe-1.19.0-py2.7.egg
remote: stripe 1.19.0 is already the active version in easy-install.pth
remote: 
remote: Using /var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/dependencies/python/virtenv/lib/python2.7/site-packages/stripe-1.19.0-py2.7.egg
remote: Searching for readability-api==0.2.4
remote: Best match: readability-api 0.2.4
remote: Processing readability_api-0.2.4-py2.7.egg
remote: readability-api 0.2.4 is already the active version in easy-install.pth
remote: 
remote: Using /var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/dependencies/python/virtenv/lib/python2.7/site-packages/readability_api-0.2.4-py2.7.egg
remote: Searching for requests==2.3.0
remote: Best match: requests 2.3.0
remote: Processing requests-2.3.0-py2.7.egg
remote: requests 2.3.0 is already the active version in easy-install.pth
remote: 
remote: Using /var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/dependencies/python/virtenv/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg
remote: Searching for django-taggit==0.11.1
remote: Best match: django-taggit 0.11.1
remote: Processing django_taggit-0.11.1-py2.7.egg
remote: django-taggit 0.11.1 is already the active version in easy-install.pth
remote: 
remote: Using /var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/dependencies/python/virtenv/lib/python2.7/site-packages/django_taggit-0.11.1-py2.7.egg
remote: Searching for Django==1.6.5
remote: Best match: Django 1.6.5
remote: Processing Django-1.6.5-py2.7.egg
remote: Django 1.6.5 is already the active version in easy-install.pth
remote: Installing django-admin.py script to /var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/bin
remote: 
remote: Using /var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/dependencies/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg
remote: Searching for python-dateutil==2.2
remote: Best match: python-dateutil 2.2
remote: Processing python_dateutil-2.2-py2.7.egg
remote: python-dateutil 2.2 is already the active version in easy-install.pth
remote: 
remote: Using /var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/dependencies/python/virtenv/lib/python2.7/site-packages/python_dateutil-2.2-py2.7.egg
remote: Searching for httplib2==0.8
remote: Best match: httplib2 0.8
remote: Processing httplib2-0.8-py2.7.egg
remote: httplib2 0.8 is already the active version in easy-install.pth
remote: 
remote: Using /var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/dependencies/python/virtenv/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg
remote: Searching for oauth2==1.5.211
remote: Best match: oauth2 1.5.211
remote: Processing oauth2-1.5.211-py2.7.egg
remote: oauth2 1.5.211 is already the active version in easy-install.pth
remote: 
remote: Using /var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/dependencies/python/virtenv/lib/python2.7/site-packages/oauth2-1.5.211-py2.7.egg
remote: Searching for six==1.7.3
remote: Best match: six 1.7.3
remote: Processing six-1.7.3-py2.7.egg
remote: six 1.7.3 is already the active version in easy-install.pth
remote: 
remote: Using /var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/dependencies/python/virtenv/lib/python2.7/site-packages/six-1.7.3-py2.7.egg
remote: Finished processing dependencies for live==1.0
remote: Script /var/lib/openshift/53f57f08500446f30d00045b/python//virtenv/bin/activate.fish cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/bin/python)
remote: Script /var/lib/openshift/53f57f08500446f30d00045b/python//virtenv/bin/activate.csh cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/bin/python)
remote: Preparing build for deployment
remote: Deployment id is 2e941cd4
remote: Activating deployment
remote: Starting Cron cartridge
remote: Starting the agent...
remote: HAProxy already running
remote: HAProxy instance is started
remote: Script /var/lib/openshift/53f57f08500446f30d00045b/python//virtenv/bin/activate.fish cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/bin/python)
remote: Script /var/lib/openshift/53f57f08500446f30d00045b/python//virtenv/bin/activate.csh cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/bin/python)
remote: Executing 'python /var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/repo//wsgi/openshift/manage.py collectstatic --noinput'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/LICENSE-JQUERY.txt'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/collapse.min.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/jquery.init.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/inlines.min.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/timeparse.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/SelectFilter2.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/prepopulate.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/jquery.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/jquery.min.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/urlify.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/SelectBox.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/actions.min.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/calendar.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/core.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/prepopulate.min.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/inlines.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/actions.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/collapse.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/js/admin/DateTimeShortcuts.js'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/css/dashboard.css'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/css/ie.css'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/css/changelists.css'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/css/forms.css'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/css/rtl.css'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/css/widgets.css'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/nav-bg.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/tool-right.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/chooser_stacked-bg.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/inline-splitter-bg.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/selector-search.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/icon_error.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/selector-icons.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/icon_addlink.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/icon-no.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/nav-bg-grabber.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/sorting-icons.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/icon_alert.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/icon_changelink.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/icon-unknown.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/icon-yes.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/tool-right_over.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/tool-left.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/tooltag-arrowright.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/nav-bg-selected.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/tooltag-add.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/inline-delete-8bit.png'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/icon_clock.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/icon_calendar.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/tool-left_over.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/tooltag-arrowright_over.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/icon_deletelink.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/changelist-bg.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/nav-bg-reverse.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/chooser-bg.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/default-bg.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/inline-restore-8bit.png'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/inline-restore.png'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/deleted-overlay.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/default-bg-reverse.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/inline-delete.png'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/icon_success.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/changelist-bg_rtl.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/tooltag-add_over.gif'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/icon_searchbox.png'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/gis/move_vertex_on.png'
remote: Copying '/var/lib/openshift/53f57f08500446f30d00045b/python/virtenv/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg/django/contrib/admin/static/admin/img/gis/move_vertex_off.png'
remote: 
remote: 67 static files copied to '/var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/repo/wsgi/static', 1076 unmodified.
remote: Executing 'python /var/lib/openshift/53f57f08500446f30d00045b/app-root/runtime/repo/wsgi/openshift/manage.py syncdb --noinput'
remote: Creating tables ...
remote: Installing custom SQL ...
remote: Installing indexes ...
remote: Installed 0 object(s) from 0 fixture(s)
remote: Starting Python 2.7 cartridge (Apache+mod_wsgi)
remote: Application directory "wsgi/" selected as DocumentRoot
remote: Application "wsgi/application" selected as default WSGI entry point
remote: Failed to report deployment to broker.  This will be corrected on the next git push.
remote: -------------------------
remote: Git Post-Receive Result: success
remote: Activation status: success
remote: Deployment completed with status: success
To ssh://53f57f08500446f30d00045b.com/~/git/live.git/
   796d6da..2ffb3d5  master -> master

Comment 7 Jhon Honce 2014-10-07 22:41:17 UTC
Fixed in https://github.com/openshift/origin-server/pull/5858

Comment 8 Jack 2014-10-07 23:01:02 UTC
Great!  How long until this 'online' or will it be patched?  The inability to undeploy is nerve-wracking.

Comment 10 Jack 2014-10-08 02:24:53 UTC
There is no created_at value in those files so I copied an activation number from one of the others and filled the empty activations array, then did a push.  The result was the same "Failed to report deployment to broker" and it left another array blank.

Either the specific value that needs to go in that empty array is important or else there is some other problem entirely.

Comment 11 Meng Bo 2014-10-08 08:21:29 UTC
Checked on devenv_5219, after set the activations array to empty, it will not meet the failure during git push.

But the corrupted deployment will not be replaced by the following deploy.

I set the keepdeployments to 5 for my app in the beginning, and after all there are only 3 deployments can be listed.

In the beginning:
[root@fedora20 perl1]# rhc deployment-list perl1
7:52 PM, deployment 6b905e1c
7:52 PM, deployment a152045b
7:52 PM, deployment 84c74493
7:52 PM, deployment 76823c14
7:53 PM, deployment e96be7e7

After modify the metadata.json for 2 deployments:
[root@fedora20 perl1]# rhc deployment-list perl1
8:04 PM, deployment 9228dd52
8:04 PM, deployment e7bb8036
8:04 PM, deployment fa18736c


And seems the oo-devel-node cannot work at all.
[root@ip-10-111-162-53 ~]# oo-devel-node report-deployments --with-container-uuid 54352a3189968e6dcb00006d
[root@ip-10-111-162-53 ~]#

Comment 12 Jhon Honce 2014-10-08 16:51:53 UTC
I added a message to signal end of report-deployments() call. To determine if the call worked you need to review the Broker logs.

This patch causes the Node to skip the deployments with empty activations when reporting to the Broker.  The behavior described below is expected.

Comment 13 Jack 2014-10-08 16:56:54 UTC
Jhon, what else should I try to get this working in the mean time?

Comment 15 Meng Bo 2014-10-13 05:46:48 UTC
According to comment#12, the issue has been fixed.

And the output has been updated by comment#14
[root@ip-10-150-52-52 ~]# oo-devel-node report-deployments -c 543b9c551305c016b6000001
Completed reporting deployments to Broker for gear 543b9c551305c016b6000001

Move bug to verified.


Note You need to log in before you can comment on or make changes to this bug.