Git Product home page Git Product logo

ces-commons's People

Contributors

abs0lem42 avatar cbeyer42 avatar cloudflo2312 avatar cwolfes avatar hertucktor avatar jgizycki avatar mbehlendorf avatar nhinze23 avatar phil-ah avatar ppxl avatar robertauer avatar schnatterer avatar sdorra avatar sklein94 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

alainlompo

ces-commons's Issues

getIp() - unexpected result for non-192.168.-networks

When calling getIp() in an environment that does not have a network adapter that has a 192.168.x.x IP address, the IP address of the first network adapter (eth0) is returned.

In case of the ecoystem eth0 is the NAT adapter that cannot be reached from outside of the VM. It usually has the address 10.0.2.15.

Please make the logic more robust so it also returns the externally accessible IP address (private or public network instead of the NAT adapter) even when this IP address does not start in 192.168..

The behaviour can be reproduced by starting an ecosystem with a private network and an IP address of for example 192.170.2.42.
When calling vagrant up, it will output a setup link for http://10.0.2.15:8080, whereas it can only be reached at http://192.170.2.42:8080.

A workaround would be to query the external IP address via vagrant ssh -c "ifconfig eth1" and to perform a setup. However, when shutting down the ecosystem and starting it again with a different IP (which is not unlikely for public/bridged networks), the ecosystem will no longer be accessible from outside the VM.

You can reproduce this like so:

  • Start the ecosystem VM, for example as shown above with an IP of 192.170.2.42.
  • Perform a minimal CES setup
  • When everything is done, shut down the VM, e.g. with vagrant halt.
  • Change the IP address in the Vagrantfile, e.g. 182.180.3.23.
  • Start the VM again, vagrant up
  • Access the ecosystem in browser via https://182.180.3.23.

Right now, the last step does not return an answer. Desired behaviour is that we can reach the ecosystem at the new address.

Set vm.max_map_count=262144

For the coming new version of SonarQube (7.9) it is required to configure vm.max_map_count to 262144. It would be nice to do this directly with ces-commons.

Install issues of new ces-commons

When upgrading ces-commons versions lower than 0.1.4, the postinst-script is failing because systemd wants to set an already installed symlink when enabling ipchangecheck unit.

Failed to execute operation: File exists
dpkg: error processing package ces-commons (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
ces-commons

migration from 0.1.3 to 0.1.5 fails with error "file exists"

Preparing to unpack .../ces-commons_0.1.5_amd64.deb ...
Unpacking ces-commons (0.1.5) ...
Setting up ces-commons (0.1.5) ...
Failed to execute operation: File exists
dpkg: error processing package ces-commons (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 ces-commons
E: Sub-process /usr/bin/dpkg returned an error code (1)

on an Ubuntu 16.04 system.

Make IPChange ready for Azure

If the CES is run in Azure, the machine gets two IP addresses. One internal address, which is still used for connecting to the etcd and an external which is used for accessing the CES from outside and for which the certificate needs to be generated. The internal address needs to be written to /etc/ces/node_master, the external needs to be written to the /config/_global/fqdn key in etcd.

Add local.cloudogu.com as alternative DNS entry for the certificate

The combination of static IP + Self-Signed certificate produces annoying issues when using OS X + Chrome. Further, working with a domain is simpler than with a static IP. In this issue, the domain local.cloudogu.com should be added as an alternative DNS entry for the SSL certificate.

Fix certificate generation before ces setup

A ssl-certificate cannot be generated before ces-setup because the domain is not yet set. But instead the ip address could also be used for this. Then the certificate-generation will work.

IP change problem: Device "onlink" does not exist

After rebooting the CES with a new IP address, the ipchangecheck service fails, if the "onlink" network option(?) is set.

Feb 28 14:32:00 ces ipchange.sh[1293]: Device "onlink" does not exist.
Feb 28 14:32:00 ces systemd[1]: ipchangecheck.service: Main process exited, code=exited, status=1/FAILURE

A successful quickfix has been changing the {print $NF}-part in line 126 of /etc/ces/functions.sh to {print $5} and setting the new IP address in /etc/ces/node_master manually, but this maybe isn't a general solution.

Upgrade to 0.3.0 fails with conflicting `dockeroptions.conf`

Within the release of version 0.3.0 / PR #13, the SystemD docker service definition moved from the ecosystem to this package (compare ecosystem PR 414)

IMO this move broke Debian's package management in recognizing a certain state of a config file. The usual
In consequence, when upgrading from any earlier ces-commons version to 0.3.0, Debian's package management requires a file conflict resolution.

affected systems:

CES instances which have not been set-up with ces-commons 0.3.0

affected versions:

ces-commons = 0.3.0 in conjunction with ces-commons < 0.3.0

known workarounds:

Case 1: No custom modifications to /etc/systemd/system/docker.d.service/dockeroptions.conf:

The conflict consists solely of adding additional lines. If no custom modifications were made applying the maintainer's version is a good choice. If the package upgrade is already underway apt or apt-get provides a way to pick the maintainer's version. In a scripted environment (f. i. with a cesapp Blueprint file the conflict could be avoided by first deleting dockeroptions.conf and then upgrading the package.

Case 1: Custom modifications to /etc/systemd/system/docker.d.service/dockeroptions.conf:

Here you are on your own. Basically the package's dockeroptions.conf should be taken as the base. Then apply your customization. Please note that this solution will not solve the general problem, that is: the next time ces-commons changes dockeroptions.conf you have to solve the arising conflict again. A second config file might be the better solution, though.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.