Search Engine: Elastic

Article ID: 128464, created on Feb 26, 2016, last review on Jul 14, 2018

  • Applies to:
  • Operations Automation 6.0
  • Operations Automation 5.5


The article describes the procedure of converting Shared VPSs into Hardware Nodes and known issues faced while using it. Common method of usage can be found in the guide Converting Shared VPSs into Hardware Nodes

General questions

  1. Is this mandatory that we need to apply it on our OA 5.5? If we did it then what will be the impact on our OA system?

    All the shared containers in OSA environment should be converted to VPS Hardware Nodes before upgrading to OA 6.0. It is not possible to upgrade if this requirement is not fulfilled. Starting with the OA 6.0, OA stopped supporting any deployment scenarios using shared containers (VPSs). This procedure should be done for all VPSs before the upgrade, otherwise the upgrade script will stop the process with corresponding message.

  2. Does the script have any requirements to Virtuozzo version?

    Version of Virtuozzo should be at least 4.7. On earlier versions of Virtuozzo IP addresses inside containers will be lost after restart.

  3. If we perform the steps mentioned in given URL then will there any service interruption to our customers? i.e. to Hosted Exchange and Hyper-V services. How much time will it take to convert one VPS?

    The procedure does not affect such Windows services as Hosted Exchange and Hyper-V. Generally the process of conversion includes DB updates and changing network in container from host-routed to bridged, nothing else. It must be done because OA can not manage IPs configured in Host-Routed mode, i.e. adding new IPs or removing old ones. Once the VPS is converted, OA will use the general system internal tools in VPS to manage IPs, but not from the side of VPS hardware node. This procedure taken 5-10 minutes maximum. However, the long part of the process is the backup of VPS. It is required to make a backup of VPS before the conversion, and it can take a lot of time depending on the amount of data in the container.

  4. What exact changes are applied to VPS by the script ?

    The following changes are applied on container while executing the script:

    • Changing network interface from "venet0" to "eth0"

    • Adding new interface:

      def ve_add_ifname(hw_host, host, ifname, save):
      cmd = ["vzctl", "set", str(ctid), "--netif_add", ifname, "--save"]
    • Removing old interface:

      def ve_remove_ifname(hw_host, host, ifname, save):
      cmd = ["vzctl", "set", str(ctid), "--netif_del", ifname, "--save"]
    • Assigning IP address:

      def ve_assign_ip(hw_host, host, ifname, ip_address, netmask, save, use_vzctl = False):
      cmd = ["vzctl", "set", str(ctid),
              "--ipadd", "%s/%s" % (ip_address, netmask)]
          if save:
    • Removing old IP Address:

      def ve_remove_ip(hw_host, host, ifname, ip_address, netmask, save):
      if un_alias(ifname) == "venet0":
              cmd = ["vzctl", "set", str(ctid),
                  "--ipdel", ip_address]
              cmd = ["vzctl", "set", str(ctid),
                  "--ifname", un_alias(ifname),
                  "--ipdel", ip_address]
    • Attaching VE to a network:

      def ve_attach_to_network(hw_host, host, ifname, network_name):
      cmd = ["vzctl", "set", str(ctid), "--ifname", ifname, "--network", network_name, "--save"]
    • Setting default route:

      def ve_set_default_route(hw_host, host, ip_address):
      cmd = ["vzctl", "exec", str(ctid), "ip route del default"]
      cmd = ["vzctl", "exec", str(ctid), "ip route add default via %s" % ip_address]
    • Updating the information in file "/etc/sysconfig/network" inside the container:-

      cmd = ["vzctl", "exec", str(ctid), "/bin/sed -i.backup '/GATEWAY/d' /etc/sysconfig/network"]
      cmd = ["vzctl", "exec", str(ctid), "/bin/sed -i '\\$aGATEWAY=%s' /etc/sysconfig/network" % ip_address]
    • Restarting pem service in the container:

      cmd = ["vzctl", "exec", str(ctid), "service pem stop"]
      cmd = ["vzctl", "exec", str(ctid), "service pem start"]

Known issues with script:

  • 128008 Communication failure with remote server
  • 128612 missing networks on venet0
  • 128010 network interfaces are missing on Shared VPS
  • 126740 ValueError: invalid literal for int(): auto
  • 124085 There is no networks on host`
  • 128151 uses ServiceCT IP while SSHing to VPS HW node
  • 128153 RTNETLINK answers: No such process
  • 127179 Shared VPS located on hardware host %d but passed %s'
  • 128609 Host pemhost123 is not a Shared VPS
  • 128096 There is no password, pubkey ssh access to host
  • 127178 Network is missing on host
  • 128608 Failed to find %s backnet IP
  • 128613 ERROR poaupdater.uUtil.ExecFailed
  • 128611 There is no YUM tool installed on host

Other questions about the script:

  • 128009 Is it necessary to configure yum repositories on shared VPS registered in OA before converting it to hardware node with
  • 127177 Is it possible to convert VPS that already has bridged networks configured?
  • 128610 How to add manually created VPS as a Hardware Node?

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 5b048d9bddf8048a00aba7e0bdadef37 2554725ed606193dd9bbce21365bed4e 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF