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

Configure APT streams that contain latest packages for Client and Server

    XMLWordPrintable

Details

    • Bug
    • Status: Complete
    • Low
    • Resolution: Invalid
    • None
    • None
    • None
    • Unset

    Description

      At the moment, https://sovrin.slack.com/archives/C5FJY7F1Q/p1540391559000100, for a validator to join a Sovrin Network (i.e. TestNet, MainNet), its administrator must know the version of Indy that the network is running/supports and also the package version for all the apt packages that are relied upon by that version.

      For example, for the v1.6.73, upgrade, this was the install string we were required to use:

      sudo apt install indy-anoncreds=1.0.11 indy-node=1.6.73 indy-plenum=1.6.51 indy-plenum=1.6.51 python3-base58=1.0.0 python3-dateutil=2.6.1 python3-indy-crypto=0.4.3 python3-intervaltree=2.1.0 python3-ioflo=1.5.4 python3-jsonpickle=0.9.6 python3-libnacl=1.6.1 python3-msgpack=0.4.6-1build1 python3-orderedset=2.0 python3-portalocker=0.5.7 python3-prompt-toolkit=0.57-1 python3-psutil=5.4.3 python3-pygments=2.2.0 python3-pympler=0.5 python3-pyzmq=17.0.0 python3-rlp=0.5.1 python3-rocksdb=0.6.9 python3-semver=2.7.9 python3-sha3=0.2.1 python3-six=1.11.0 python3-sortedcontainers=1.5.7 python3-ujson=1.33-1build1 python3-timeout-decorator=0.4.0 indy-node=1.6.73 indy-plenum=1.6.51 indy-plenum=1.6.51 python3-base58=1.0.0 python3-dateutil=2.6.1 python3-indy-crypto=0.4.3 python3-intervaltree=2.1.0 python3-ioflo=1.5.4 python3-jsonpickle=0.9.6 python3-libnacl=1.6.1 python3-msgpack=0.4.6-1build1 python3-orderedset=2.0 python3-portalocker=0.5.7 python3-prompt-toolkit=0.57-1 python3-psutil=5.4.3 python3-pygments=2.2.0 python3-pympler=0.5 python3-pyzmq=17.0.0 python3-rlp=0.5.1 python3-rocksdb=0.6.9 python3-semver=2.7.9 python3-sha3=0.2.1 python3-six=1.11.0 python3-sortedcontainers=1.5.7 python3-ujson=1.33-1build1 sovtoken=0.9.3+12.58 sovrin=1.1.24 sovtoken=0.9.3+12.58 sovtokenfees=0.9.3+13.58 sovrin=1.1.24

       

      This is a bit unwieldy.  So this issue is to track the work of being able to point at a specific version of either the Sovrin or Indy-Node packages and get all the correctly depended upon packages.  However, along these same lines, there's another requirement here:

      For those users who are not currently on the Sovrin Slack, which may be quite a few, it can be difficult to tell if you're going to get the correct version of Indy to join, say, the TestNet, if you just execute:

      apt install -y sovrin

      Or maybe even just:

      apt install -y indy-node

      There are already in place, master and stable branches in the Sovrin/Indy apt repository, so my proposal is that there be two more branches: testnet and mainnet.  These branches would always point to the versions of the packages that a person needs to install to join the corresponding network.

      These fixes help address the situations where:

      1. An Sovrin Validator administrator is trying to follow the latest instructions on deploying their validator, and the packages that they install are incompatible with what's running on the network they would like to join (note that they must join the TestNet before being allowed on the MainNet, so the when the versions are different, this is problematic).
      2. The MainNet and TestNet are running different versions, as they are at the time of writing, without having to specify a long list of package versions, we can just use apt's built-in functionality for this situation to make it effortless to join any/either network.
      3. Automated tools are being built to build, for example, Docker images, or virtual machine appliances/images, and maintaining the list of packages is a long, complicated process.  Instead, what if the build engine could just use a branch of the apt repo and automatically be ensured compatibility with the desired network.

      I'm not proposing that we remove or forget the stable, master, or RC branches – these definitely have their purpose as is already demonstrated by the community.  I just find that the situation comes up a lot on Sovrin Slack and it could be ameliorated by this already existing feature of apt.

      I'm aware that a process already exists in which the Trustees push a transaction to the config ledger or poor ledger that causes the validator nodes to automatically update in place.  That's fine.  When that is executed would be a good time to update the pointer on that network to point at the version that will be installed when the upgrade is complete.  A Steward (or maybe even a trust anchor) who is not attached to the network at the time of the transaction has no idea what version they need to use in order to even read these transactions though, and we definitely saw the transaction structure change with recent upgrades, and I am sure that will happen again.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              benjsmi Ben Smith
              Ben Smith, Richard Esplin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: