Skip to content

Create Infra validation tests Stage pre_deploy step 1 #5

@esilvaju

Description

@esilvaju

Check if lifecycle_callbacks are under /etc/simple_grid/$execution_id

[root@h-lc-01 SIMPLE-helper]# ls -la /etc/simple_grid/scripts/0/
total 0
drwxrwxrwx 5 root root 57 Aug 12 16:06 .
drwxr-xr-x 3 root root 15 Aug 12 16:06 ..
drwxrwxrwx 2 root root 30 Aug 12 16:06 post_init
drwxrwxrwx 2 root root 30 Aug 12 16:06 pre_config
drwxrwxrwx 2 root root 29 Aug 12 16:06 pre_init

stage: pre_deploy_step_1, node: lightweight_component, component: None

Check if Docker Swarm dns_info and swarm_status files were generated.

/etc/simple_grid/dns.yaml

[root@dev-cm-01 ~]# cat /etc/simple_grid/.dns.yaml
- container_fqdn: dev-lc-01.cern.ch
  host_fqdn: dev-lc-01.cern.ch
  host_ip: 188.184.88.60
  container_ip: 10.0.0.10
  type: compute_element
  execution_id: 0
- container_fqdn: WN-Pbs_dev-lc-02_1.cern.ch
  host_fqdn: dev-lc-02.cern.ch
  host_ip: 188.185.85.82
  container_ip: 10.0.0.11
  type: worker_node
  execution_id: 1

stage: pre_deploy_step_1, node: lightweight_component, component: None

Check if the Firewall was set:

[root@h-cm-01 ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere             multiport dports 2376,2377,7946 /* 01 TCP SIMPLE Framework Firewall rule for Docker Swarm */
ACCEPT     udp  --  anywhere             anywhere             multiport dports 7946,4789 /* 02 UDP SIMPLE Framework Firewall rule for Docker Swarm */

stage: pre_deploy_step_1, node: lightweight_component, component: None

Check if the Docker swarm network was created and the other nodes joined to the network:

on the manager

[root@dev-lc-01 ~]# docker node ls
ID                            HOSTNAME            STATUS              AVAILABILITY        MANAGER STATUS      ENGINE VERSION
tg1m8064pfy7rpsc6fia7yrv3 *   dev-lc-01.cern.ch   Ready               Active              Leader              19.03.1
rzvjb042f86qs9wqdcrr7g7a6     dev-lc-02.cern.ch   Ready               Active              Reachable           19.03.1

stage: pre_deploy_step_1, node: lightweight_component, component: None

Check if swarm_status file was filled:

/etc/simple_grid/.swarm_status

main_manager: h-lc-01.cern.ch
managers:

  • h-lc-02.cern.ch
    tokens:
    worker: SWMTKN-1-1jn2xif7qud07zfp0v1robfpigakqjlmgfeh3uj5ipu4tgi4az-85clkbw6k81g21ej1oqyg8heb
    manager: SWMTKN-1-1jn2xif7qud07zfp0v1robfpigakqjlmgfeh3uj5ipu4tgi4az-9dn7gxh6ahf57db1f6jzwkody
stage: pre_deploy_step_1, node: lightweight_component, component: None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions