Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S slapos.toolbox
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedi
  • slapos.toolbox
  • Merge requests
  • !60

Closed
Created Jun 20, 2019 by Thomas Gambier@tomo🚴🏼Owner
  • Report abuse
Report abuse

[monitor]: monitor bootstrap doesn't fail if we can't connect to monitor URL

  • Overview 2
  • Commits 1
  • Changes 1

I see from time to time the error:

Traceback (most recent call last):
  File ".../bin/monitor.bootstrap", line 79, in <module>
    sys.exit(slapos.monitor.monitor.main())
  File ".../eggs/slapos.toolbox-0.92-py2.7.egg/slapos/monitor/monitor.py", line 379, in main
    sys.exit(monitor.bootstrapMonitor())
  File ".../eggs/slapos.toolbox-0.92-py2.7.egg/slapos/monitor/monitor.py", line 357, in bootstrapMonitor
    os.path.join(self.public_folder, 'feeds'))
  File ".../eggs/slapos.toolbox-0.92-py2.7.egg/slapos/monitor/monitor.py", line 296, in generateOpmlFile
    'title': self.getMonitorTitleFromUrl(feed_url + "/share/public/"),
  File ".../eggs/slapos.toolbox-0.92-py2.7.egg/slapos/monitor/monitor.py", line 215, in getMonitorTitleFromUrl
    response = urllib2.urlopen(url, context=context, timeout=timeout)
  File ".../parts/python2.7/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
 [...]
ssl.SSLError: ('The read operation timed out',)```

This is usually when instance doesn't exist in frontend.

In order to prevent monitor bootstrap from failing, ignore all errors.
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: tomo_bootstrap_monitor
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7