Update ipfs-cluster to 0.10.1 #49

Merged
greg merged 1 commits from chore/48-ipfs-cluster_0.10.1 into master 2019-05-02 09:16:51 +00:00
Owner

ipfs-cluster-ctl commands such as pin rm now work. This is running on dev and andromeda, can be merged

Closes #48

On andromeda:

Remove itself from the old cluster

ipfs@andromeda:~$ ipfs-cluster-ctl peers rm QmNVfAhxJrmkqkCHdoD6iZgJJaWkhehskeWWZ9cNZxNwo1

Run chef-solo with this change, to update ipfs-cluster

On dev

Stop ipfs-cluster

kare@dev:~$ sudo systemctl stop ipfs-cluster

Move the old /home/ipfs/.ipfs-cluster dir

ipfs@dev:~$ mv .ipfs-cluster .ipfs-cluster.old

Run chef-solo, stop the daemon, join andromeda:

kare@dev:~$ sudo systemctl stop ipfs-cluster
kare@dev:~$ sudo su - ipfs
ipfs@dev:~$ ipfs-cluster-service daemon --bootstrap "/ip4/46.4.18.160/tcp/9096/ipfs/QmNVfAhxJrmkqkCHdoD6iZgJJaWkhehskeWWZ9cNZxNwo1"

Check dev has joined the cluster (confirmed by checking the output of the following command on andromeda):

ipfs@andromeda:~$ ipfs-cluster-ctl peers ls
QmNVfAhxJrmkqkCHdoD6iZgJJaWkhehskeWWZ9cNZxNwo1 | andromeda.kosmos.org | Sees 1 other peers
  > Addresses:
    - /ip4/127.0.0.1/tcp/9096/ipfs/QmNVfAhxJrmkqkCHdoD6iZgJJaWkhehskeWWZ9cNZxNwo1
    - /ip4/46.4.18.160/tcp/9096/ipfs/QmNVfAhxJrmkqkCHdoD6iZgJJaWkhehskeWWZ9cNZxNwo1
    - /p2p-circuit/ipfs/QmNVfAhxJrmkqkCHdoD6iZgJJaWkhehskeWWZ9cNZxNwo1
  > IPFS: QmZ4Lpzhz8bafbTYvEMMCmrbrMM4JfyHDR23WbCSAd9bo7
    - /ip4/127.0.0.1/tcp/4001/ipfs/QmZ4Lpzhz8bafbTYvEMMCmrbrMM4JfyHDR23WbCSAd9bo7
    - /ip4/46.4.18.160/tcp/4001/ipfs/QmZ4Lpzhz8bafbTYvEMMCmrbrMM4JfyHDR23WbCSAd9bo7
    - /ip6/2a01:4f8:221:39c1::2/tcp/4001/ipfs/QmZ4Lpzhz8bafbTYvEMMCmrbrMM4JfyHDR23WbCSAd9bo7
    - /ip6/::1/tcp/4001/ipfs/QmZ4Lpzhz8bafbTYvEMMCmrbrMM4JfyHDR23WbCSAd9bo7
QmTVC6eguRWoS2W18QnPHt64h8t5yQmYRhvoZcdgr4Ax2V | dev | Sees 1 other peers
  > Addresses:
    - /ip4/127.0.0.1/tcp/9096/ipfs/QmTVC6eguRWoS2W18QnPHt64h8t5yQmYRhvoZcdgr4Ax2V
    - /ip4/144.76.39.171/tcp/9096/ipfs/QmTVC6eguRWoS2W18QnPHt64h8t5yQmYRhvoZcdgr4Ax2V
    - /p2p-circuit/ipfs/QmTVC6eguRWoS2W18QnPHt64h8t5yQmYRhvoZcdgr4Ax2V
  > IPFS: QmWY7vNysM1jgHFBuSr9Y2ayG5tUeKmGBjwjN9x6pEVxRb
    - /ip4/127.0.0.1/tcp/4001/ipfs/QmWY7vNysM1jgHFBuSr9Y2ayG5tUeKmGBjwjN9x6pEVxRb
    - /ip4/144.76.39.171/tcp/4001/ipfs/QmWY7vNysM1jgHFBuSr9Y2ayG5tUeKmGBjwjN9x6pEVxRb
    - /ip6/2a01:4f8:191:40aa::2/tcp/4001/ipfs/QmWY7vNysM1jgHFBuSr9Y2ayG5tUeKmGBjwjN9x6pEVxRb
    - /ip6/::1/tcp/4001/ipfs/QmWY7vNysM1jgHFBuSr9Y2ayG5tUeKmGBjwjN9x6pEVxRb

Now we can ctrl+c the daemon, and start the Systemd unit:

kare@dev:~$ sudo systemctl restart ipfs

I have also added a test document, then removed the pin to make sure everything works:

ipfs@dev:~$ echo "ENS instance deployed at 0x5f6f7e8cc7346a11ca2def8f827b7a0b612c56a1" > test
ipfs@dev:~$ ipfs-cluster-ctl add test
ipfs@dev:~$ ipfs pin rm QmVnQbvvCxCMppY7Q7CS7zi7ovipWcqowBNq2MyZxUnE89
ipfs-cluster-ctl commands such as `pin rm` now work. This is running on dev and andromeda, can be merged Closes #48 ## On andromeda: Remove itself from the old cluster ``` ipfs@andromeda:~$ ipfs-cluster-ctl peers rm QmNVfAhxJrmkqkCHdoD6iZgJJaWkhehskeWWZ9cNZxNwo1 ``` Run chef-solo with this change, to update ipfs-cluster ## On dev Stop ipfs-cluster ``` kare@dev:~$ sudo systemctl stop ipfs-cluster ``` Move the old `/home/ipfs/.ipfs-cluster` dir ``` ipfs@dev:~$ mv .ipfs-cluster .ipfs-cluster.old ``` Run chef-solo, stop the daemon, join andromeda: ``` kare@dev:~$ sudo systemctl stop ipfs-cluster kare@dev:~$ sudo su - ipfs ipfs@dev:~$ ipfs-cluster-service daemon --bootstrap "/ip4/46.4.18.160/tcp/9096/ipfs/QmNVfAhxJrmkqkCHdoD6iZgJJaWkhehskeWWZ9cNZxNwo1" ``` Check dev has joined the cluster (confirmed by checking the output of the following command on andromeda): ``` ipfs@andromeda:~$ ipfs-cluster-ctl peers ls QmNVfAhxJrmkqkCHdoD6iZgJJaWkhehskeWWZ9cNZxNwo1 | andromeda.kosmos.org | Sees 1 other peers > Addresses: - /ip4/127.0.0.1/tcp/9096/ipfs/QmNVfAhxJrmkqkCHdoD6iZgJJaWkhehskeWWZ9cNZxNwo1 - /ip4/46.4.18.160/tcp/9096/ipfs/QmNVfAhxJrmkqkCHdoD6iZgJJaWkhehskeWWZ9cNZxNwo1 - /p2p-circuit/ipfs/QmNVfAhxJrmkqkCHdoD6iZgJJaWkhehskeWWZ9cNZxNwo1 > IPFS: QmZ4Lpzhz8bafbTYvEMMCmrbrMM4JfyHDR23WbCSAd9bo7 - /ip4/127.0.0.1/tcp/4001/ipfs/QmZ4Lpzhz8bafbTYvEMMCmrbrMM4JfyHDR23WbCSAd9bo7 - /ip4/46.4.18.160/tcp/4001/ipfs/QmZ4Lpzhz8bafbTYvEMMCmrbrMM4JfyHDR23WbCSAd9bo7 - /ip6/2a01:4f8:221:39c1::2/tcp/4001/ipfs/QmZ4Lpzhz8bafbTYvEMMCmrbrMM4JfyHDR23WbCSAd9bo7 - /ip6/::1/tcp/4001/ipfs/QmZ4Lpzhz8bafbTYvEMMCmrbrMM4JfyHDR23WbCSAd9bo7 QmTVC6eguRWoS2W18QnPHt64h8t5yQmYRhvoZcdgr4Ax2V | dev | Sees 1 other peers > Addresses: - /ip4/127.0.0.1/tcp/9096/ipfs/QmTVC6eguRWoS2W18QnPHt64h8t5yQmYRhvoZcdgr4Ax2V - /ip4/144.76.39.171/tcp/9096/ipfs/QmTVC6eguRWoS2W18QnPHt64h8t5yQmYRhvoZcdgr4Ax2V - /p2p-circuit/ipfs/QmTVC6eguRWoS2W18QnPHt64h8t5yQmYRhvoZcdgr4Ax2V > IPFS: QmWY7vNysM1jgHFBuSr9Y2ayG5tUeKmGBjwjN9x6pEVxRb - /ip4/127.0.0.1/tcp/4001/ipfs/QmWY7vNysM1jgHFBuSr9Y2ayG5tUeKmGBjwjN9x6pEVxRb - /ip4/144.76.39.171/tcp/4001/ipfs/QmWY7vNysM1jgHFBuSr9Y2ayG5tUeKmGBjwjN9x6pEVxRb - /ip6/2a01:4f8:191:40aa::2/tcp/4001/ipfs/QmWY7vNysM1jgHFBuSr9Y2ayG5tUeKmGBjwjN9x6pEVxRb - /ip6/::1/tcp/4001/ipfs/QmWY7vNysM1jgHFBuSr9Y2ayG5tUeKmGBjwjN9x6pEVxRb ``` Now we can ctrl+c the daemon, and start the Systemd unit: ``` kare@dev:~$ sudo systemctl restart ipfs ``` I have also added a test document, then removed the pin to make sure everything works: ``` ipfs@dev:~$ echo "ENS instance deployed at 0x5f6f7e8cc7346a11ca2def8f827b7a0b612c56a1" > test ipfs@dev:~$ ipfs-cluster-ctl add test ipfs@dev:~$ ipfs pin rm QmVnQbvvCxCMppY7Q7CS7zi7ovipWcqowBNq2MyZxUnE89 ```
Owner

I'd suggest to document here what you actually did to update the cluster, because that's not visible from a changed attribute in this PR.

Also, are you sure the entire cluster upgrade research+process was actually a small and not a medium contribution?

I'd suggest to document here what you actually did to update the cluster, because that's not visible from a changed attribute in this PR. Also, are you sure the entire cluster upgrade research+process was actually a small and not a medium contribution?
Author
Owner

I have updated the PR description above with the commands I used, and updated the contribution to a medium one

I have updated the PR description above with the commands I used, and updated the contribution to a medium one
greg closed this pull request 2019-05-02 09:16:51 +00:00
greg deleted branch chore/48-ipfs-cluster_0.10.1 2019-05-02 09:16:59 +00:00
Sign in to join this conversation.
No description provided.