Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-723

[POOL_UPGRADE] Upgrade to the same version doesn't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Complete
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sprint:
      10

      Description

      Build Info:
      indy-node 1.0.83

      Overview:
      Upgrade to the same version doesn't work.

      Preconditions:
      There is a pool of 1.0.83 version installed.

      Steps to Reproduce:
      1. Send "send POOL_UPGRADE name=upgrade83 version=1.0.83 sha256=ed0a366b4ef36d40c055672a8b83679e99246fec71a706b4ae4cb7958feace3f action=start schedule=

      {'Gw6pDLhcBcoQesN72qfotTgFa7cbuqZpkX3Xo6pLhPhv': '2017-08-09T09:20:00.258870+00:00', '8ECVSk179mjsjKRLWiQtssMLgp6EPhWXtaYyStWPSGAb': '2017-08-09T09:25:00.258870+00:00', 'DKVxG2fXXTU8yT5N7hGEbXB3dfdAnYv1JczDUHpmDxya': '2017-08-09T09:30:00.258870+00:00', '4PS3EDQ3dW1tci1Bp6543CfuuebjFrg36kLAUcskGfaA': '2017-08-09T09:35:00.258870+00:00'}

      timeout=10 force=False reinstall=True"

      Actual Results:
      Version is not reinstalled, there is a traceback in journalctl:

      Aug 09 09:19:59 9f42abbfd607 env[187]: Traceback (most recent call last):
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/bin/start_sovrin_node", line 19, in <module>
      Aug 09 09:19:59 9f42abbfd607 env[187]: run_node(config, self_name, int(sys.argv[2]), int(sys.argv[3]))
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/lib/python3.5/dist-packages/sovrin_node/utils/node_runner.py", line 29, in run_node
      Aug 09 09:19:59 9f42abbfd607 env[187]: looper.run()
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/lib/python3.5/dist-packages/stp_core/loop/looper.py", line 284, in _exit_
      Aug 09 09:19:59 9f42abbfd607 env[187]: self.shutdownSync()
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/lib/python3.5/dist-packages/stp_core/loop/looper.py", line 280, in shutdownSync
      Aug 09 09:19:59 9f42abbfd607 env[187]: self.loop.run_until_complete(self.shutdown())
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
      Aug 09 09:19:59 9f42abbfd607 env[187]: return future.result()
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
      Aug 09 09:19:59 9f42abbfd607 env[187]: raise self._exception
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
      Aug 09 09:19:59 9f42abbfd607 env[187]: result = coro.send(None)
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/lib/python3.5/dist-packages/stp_core/loop/looper.py", line 270, in shutdown
      Aug 09 09:19:59 9f42abbfd607 env[187]: await self.runFut
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/lib/python3.5/asyncio/futures.py", line 363, in _iter_
      Aug 09 09:19:59 9f42abbfd607 env[187]: return self.result() # May raise too.
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
      Aug 09 09:19:59 9f42abbfd607 env[187]: raise self._exception
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/lib/python3.5/dist-packages/sovrin_node/utils/node_runner.py", line 29, in run_node
      Aug 09 09:19:59 9f42abbfd607 env[187]: looper.run()
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/lib/python3.5/dist-packages/stp_core/loop/looper.py", line 254, in run
      Aug 09 09:19:59 9f42abbfd607 env[187]: return self.loop.run_until_complete(what)
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
      Aug 09 09:19:59 9f42abbfd607 env[187]: return future.result()
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
      Aug 09 09:19:59 9f42abbfd607 env[187]: raise self._exception
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
      Aug 09 09:19:59 9f42abbfd607 env[187]: result = coro.send(None)
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/lib/python3.5/dist-packages/stp_core/loop/looper.py", line 218, in runForever
      Aug 09 09:19:59 9f42abbfd607 env[187]: await self.runOnceNicely()
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/lib/python3.5/asyncio/coroutines.py", line 105, in _next_
      Aug 09 09:19:59 9f42abbfd607 env[187]: return self.gen.send(None)
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/lib/python3.5/dist-packages/stp_core/loop/looper.py", line 202, in runOnceNicely
      Aug 09 09:19:59 9f42abbfd607 env[187]: msgsProcessed = await self.prodAllOnce()
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/lib/python3.5/asyncio/coroutines.py", line 105, in _next_
      Aug 09 09:19:59 9f42abbfd607 env[187]: return self.gen.send(None)
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/lib/python3.5/dist-packages/stp_core/loop/looper.py", line 147, in prodAllOnce
      Aug 09 09:19:59 9f42abbfd607 env[187]: s += await n.prod(limit)
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/lib/python3.5/asyncio/coroutines.py", line 105, in _next_
      Aug 09 09:19:59 9f42abbfd607 env[187]: return self.gen.send(None)
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/lib/python3.5/dist-packages/sovrin_node/server/node.py", line 366, in prod
      Aug 09 09:19:59 9f42abbfd607 env[187]: c += self.upgrader.service()
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/lib/python3.5/dist-packages/sovrin_node/server/upgrader.py", line 134, in service
      Aug 09 09:19:59 9f42abbfd607 env[187]: return self._serviceActions()
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/lib/python3.5/dist-packages/plenum/server/has_action_queue.py", line 65, in _serviceActions
      Aug 09 09:19:59 9f42abbfd607 env[187]: action()
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/lib/python3.5/dist-packages/sovrin_node/server/upgrader.py", line 433, in _callUpgradeAgent
      Aug 09 09:19:59 9f42abbfd607 env[187]: self._upgrade_start_callback()
      Aug 09 09:19:59 9f42abbfd607 env[187]: File "/usr/local/lib/python3.5/dist-packages/sovrin_node/server/node.py", line 260, in notify_upgrade_start
      Aug 09 09:19:59 9f42abbfd607 env[187]: scheduled_upgrade_version = self.upgrader.scheduledUpgrade[0]
      Aug 09 09:19:59 9f42abbfd607 env[187]: TypeError: 'NoneType' object is not subscriptable

      Expected Results:
      Upgrader should reinstall the current version.

      Additional Info:
      systemctl status sovrin-node.service displays the same traceback above after the upgrade.

        Attachments

        1. node1.7z
          2.59 MB
          Vladimir Shishkin
        2. node2.7z
          3.41 MB
          Vladimir Shishkin
        3. node3.7z
          3.13 MB
          Vladimir Shishkin
        4. node4.7z
          3.21 MB
          Vladimir Shishkin

          Issue Links

            Activity

              People

              Assignee:
              danielhardman Daniel Hardman
              Reporter:
              VladimirWork Vladimir Shishkin
              Watchers:
              Andrey Goncharov, Vladimir Shishkin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: