Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-9204

Delete static route fails when it's already gone

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 4.7.0
    • 4.7.1, 4.8.0
    • SystemVM
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      When you try to delete a static route, this fails when it's no longer there on the router (not sure why that happens).

      Error seen:
      [INFO] update_config.py :: Processing incoming file => static_routes.json.1451560145
      [INFO] Processing JSON file static_routes.json.1451560145
      Traceback (most recent call last):
      File "/opt/cloud/bin/update_config.py", line 140, in <module>
      process_file()
      File "/opt/cloud/bin/update_config.py", line 52, in process_file
      qf.load(None)
      File "/opt/cloud/bin/merge.py", line 258, in load
      proc = updateDataBag(self)
      File "/opt/cloud/bin/merge.py", line 91, in _init_
      self.process()
      File "/opt/cloud/bin/merge.py", line 131, in process
      dbag = self.process_staticroutes(self.db.getDataBag())
      File "/opt/cloud/bin/merge.py", line 179, in process_staticroutes
      return cs_staticroutes.merge(dbag, self.qFile.data)
      File "/opt/cloud/bin/cs_staticroutes.py", line 26, in merge
      del dbag[key]
      KeyError: u'192.168.0.3'

      When deleting fails because it isn't there any more, it should succeed

      Attachments

        Activity

          People

            remibergsma Remi Bergsma
            remibergsma Remi Bergsma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: