Hey Egor, This looks like it might be a bug. Thanks for the report!
I'll update this thread once we've published a fix in Scalarizr. Cheers, -- Thomas | Product Manager @ Scalr | [email protected] | www.scalr.com | blog.scalr.com On Tue, Apr 28, 2015 at 12:02 PM, Egor blajenov <[email protected]> wrote: > Hello All, > I've set up custom repo for scalarizr, and changed config.yml to use this > repo to update scalarizr: > > scalarizr_update: > mode: 'solo' > default_repo: 'stable_freeze' > repos: > latest: > deb_repo_url: 'http://apt.scalr.net/debian scalr/' > rpm_repo_url: 'http://rpm.scalr.net/rpm/rhel/$releasever/$basearch > ' > win_repo_url: 'http://win.scalr.net' > stable: > deb_repo_url: 'http://apt-delayed.scalr.net/debian scalr/' > rpm_repo_url: ' > http://rpm-delayed.scalr.net/rpm/rhel/$releasever/$basearch' > win_repo_url: 'http://win-delayed.scalr.net' > stable_freeze: > deb_repo_url: 'http://54.175.96.66:81/scalarizr/apt /' > rpm_repo_url: ' > http://54.175.96.66:81/scalarizr/rpm/rhel/$releasever/$basearch' > win_repo_url: 'http://54.175.96.66:81/scalarizr/stable/win' > > When I launch servers in farm, > It works fine for roles which have image with older version of scalarizr > (e.g. 3.5.1) > > But, it doesn't work for images which I created recently, which has > scalarizr 3.5.22 . See scalarizr_update.log below: > > > 2015-04-28 04:37:43,388 - DEBUG - scalarizr.queryenv - QueryEnv response >> (parsed): {'scalr.id': 'i7x81b716bf', 'scalr.version': '5.1.0', >> 'dns.static.endpoint': 'example-dns.net'} >> 2015-04-28 04:37:43,388 - INFO - scalarizr.updclient.pkgmgr - Syncing >> repository info >> 2015-04-28 04:37:43,454 - INFO - scalarizr.updclient.api - State >> transition: in-progress/prepare -> error >> 2015-04-28 04:37:43,456 - DEBUG - scalarizr.updclient.api - Saving >> status: {'candidate': None, >> 'dist': 'Ubuntu 12.04 precise', >> 'downgrades_enabled': True, >> 'error': "Cannot retrive repo metadata from /Release. Requests error: >> Invalid URL u'/Release': No schema supplied. Perhaps you meant http:// >> /Release?", >> 'executed_at': 'Tue 28 Apr 2015 09:37:43 UTC', >> 'farm_role_id': '14', >> 'installed': None, >> 'messaging_url': 'http://54.175.96.66/messaging', >> 'package': 'scalarizr-ec2', >> 'package_type': 'omnibus', >> 'platform': 'ec2', >> 'prev_state': 'in-progress/prepare', >> 'ps_attempt': 0, >> 'ps_script_pid': None, >> 'queryenv_url': 'http://54.175.96.66/query-env', >> 'repo_url': 'http://54.175.96.66:81/scalarizr/apt /', >> 'repository': 'stable_freeze', >> 'scalr_id': 'i7x81b716bf', >> 'scalr_version': '5.1.0', >> 'server_id': '5ef20e9f-0cca-4c75-a0bd-b6aeb9aadb06', >> 'service_status': 'unknown', >> 'service_version': '3.5.22', >> 'state': 'error', >> 'system_id': 'i-2d1b1dd1'} >> 2015-04-28 04:37:43,457 - ERROR - scalarizr.ops.scalarizr.update - >> Operation "scalarizr.update" (id: 5c5e2d97-6856-4a40-a73d-e2a37f484491) >> failed. Reason: Cannot retrive repo metadata from /Release. Requests error: >> Invalid URL u'/Release': No schema supplied. Perhaps you meant http:// >> /Release? >> Traceback (most recent call last): >> File >> "/opt/scalarizr/embedded/lib/python2.7/site-packages/scalarizr-3.5.22-py2.7.egg/scalarizr/api/operation.py", >> line 191, in _in_progress >> self._completed(self.func(self, *self.func_args, **self.func_kwds)) >> File >> "/opt/scalarizr/embedded/lib/python2.7/site-packages/scalarizr-3.5.22-py2.7.egg/scalarizr/updclient/api.py", >> line 588, in do_update >> self.pkgmgr.updatedb() >> File >> "/opt/scalarizr/embedded/lib/python2.7/site-packages/scalarizr-3.5.22-py2.7.egg/scalarizr/updclient/pkgmgr.py", >> line 237, in updatedb >> repo_metadata = self._get_repo_metadata() >> File >> "/opt/scalarizr/embedded/lib/python2.7/site-packages/scalarizr-3.5.22-py2.7.egg/scalarizr/updclient/pkgmgr.py", >> line 452, in _get_repo_metadata >> exc_message="Cannot retrive repo metadata from {0}.".format(url)) >> File >> "/opt/scalarizr/embedded/lib/python2.7/site-packages/scalarizr-3.5.22-py2.7.egg/scalarizr/updclient/pkgmgr.py", >> line 61, in requests_get >> raise exc_class("{0} Requests error: {1}".format(message, e)) >> RepositoryError: Cannot retrive repo metadata from /Release. Requests >> error: Invalid URL u'/Release': No schema supplied. Perhaps you meant >> http:///Release? > > > Anybody know the reason of this error? Or, probably the way how to force > image builder to install scalarizr from my custom repo when it builds image? > > -- > You received this message because you are subscribed to the Google Groups > "scalr-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "scalr-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
