worldspawn commented on issue #21: Unattended installation appears to ignore 
nodename setting
URL: https://github.com/apache/couchdb-pkg/issues/21#issuecomment-394368705
 
 
   Hi @wohali thanks for getting back to me. My goal is definitely to have a 
cluster going but I haven't had success following the instructions. On a fresh 
vm if I run:
   
   ```
   COUCHDB_PASSWORD=6zlYkUJnDO7S
   echo "couchdb couchdb/mode select clustered
   couchdb couchdb/mode seen true
   couchdb couchdb/nodename string couchdb@couchdb-1-1
   couchdb couchdb/nodename seen true
   couchdb couchdb/cookie string 8bea6c29be97492ba1923a9687c034fc
   couchdb couchdb/cookie seen true
   couchdb couchdb/bindaddress string 0.0.0.0
   couchdb couchdb/bindaddress seen true
   couchdb couchdb/adminpass password ${COUCHDB_PASSWORD}
   couchdb couchdb/adminpass seen true
   couchdb couchdb/adminpass_again password ${COUCHDB_PASSWORD}
   couchdb couchdb/adminpass_again seen true" | sudo debconf-set-selections
   sudo DEBIAN_FRONTEND=noninteractive apt-get install -y couchdb
   ```
   `couchdb-1-1` is a resolvable hostname. 
   
   Then on newly minted couchdb install I do
   ```
   couchdb@couchdb-1-1:~$ curl admin:6zlYkUJnDO7S@localhost:5984/_cluster_setup
   {"state":"cluster_enabled"}
   ```
   ```
   couchdb@couchdb-1-1:~$ curl admin:6zlYkUJnDO7S@localhost:5984/_membership
   {"all_nodes":["[email protected]"],"cluster_nodes":["[email protected]"]}
   ```
   
   The nodename and cookie at  /opt/couchdb/etc/vm.args
   `-name [email protected]`
   `-setcookie 8bea6c29be97492ba1923a9687c034fc`
   
   Ok so the cookie got set but still the node name is not set to the provided 
value. Am I missing something?
   
   Edit: Post installation i printed out the deb conf values for the couchdb 
package
   ```
   couchdb@couchdb-1-1:~$ sudo debconf-show couchdb
   * couchdb/adminpass: (password omitted)
   * couchdb/adminpass_again: (password omitted)
     couchdb/adminpass_mismatch:
   * couchdb/mode: clustered
     couchdb/error_setting_password:
   * couchdb/bindaddress: 0.0.0.0
   * couchdb/cookie: 8bea6c29be97492ba1923a9687c034fc
     couchdb/have_1x_databases:
   * couchdb/nodename: [email protected]
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to