2024-09-19 02:42:09,765 - INFO - Domain Default found not creating
2024-09-19 02:42:09,976 - INFO - Project ctest-TestBasicPolicy-18660460 not found, creating it
2024-09-19 02:42:10,484 - INFO - Created Project:ctest-TestBasicPolicy-18660460, ID : 3f853a42-1bfd-499f-b1b6-abe0c844dda4
2024-09-19 02:42:12,231 - INFO - ================================================================================
2024-09-19 02:42:12,231 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-19 02:42:12,232 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-09-19 02:42:12,497 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.24': '0'}} with
2024-09-19 02:42:12,497 - INFO - Initial checks done. Running the testcase now
2024-09-19 02:42:12,497 - INFO -
2024-09-19 02:42:13,217 - DEBUG - Response for create_network : {'network': {'id': 'f1e677e2-1073-4245-b22e-c33ea68674cd', 'name': 'ctest-vn-43567633', 'tenant_id': '3f853a421bfd499fb1b6abe0c844dda4', 'project_id': '3f853a421bfd499fb1b6abe0c844dda4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-vn-43567633'], 'port_security_enabled': True, 'description': ''}}
2024-09-19 02:42:13,450 - DEBUG - Response for create_subnet : {'subnet': {'id': '4123bd86-e531-4fcf-8f17-7c94e4621487', 'name': '', 'tenant_id': '3f853a421bfd499fb1b6abe0c844dda4', 'network_id': 'f1e677e2-1073-4245-b22e-c33ea68674cd', 'ip_version': 4, 'cidr': '49.225.102.128/26', 'allocation_pools': [{'start': '49.225.102.130', 'end': '49.225.102.190'}], 'gateway_ip': '49.225.102.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.225.102.130', 'tags': [], 'project_id': '3f853a421bfd499fb1b6abe0c844dda4'}}
2024-09-19 02:42:13,474 - INFO - Created VN ctest-vn-43567633
2024-09-19 02:42:13,538 - DEBUG - VN ctest-vn-43567633 UUID is f1e677e2-1073-4245-b22e-c33ea68674cd
2024-09-19 02:42:13,947 - DEBUG - Response for create_network : {'network': {'id': 'ce66cdc0-844d-4f87-8258-1eb4fa305880', 'name': 'ctest-vn-73778000', 'tenant_id': '3f853a421bfd499fb1b6abe0c844dda4', 'project_id': '3f853a421bfd499fb1b6abe0c844dda4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-vn-73778000'], 'port_security_enabled': True, 'description': ''}}
2024-09-19 02:42:14,131 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd0a8450-ee17-4789-b20f-765a24d54448', 'name': '', 'tenant_id': '3f853a421bfd499fb1b6abe0c844dda4', 'network_id': 'ce66cdc0-844d-4f87-8258-1eb4fa305880', 'ip_version': 4, 'cidr': '94.29.7.192/26', 'allocation_pools': [{'start': '94.29.7.194', 'end': '94.29.7.254'}], 'gateway_ip': '94.29.7.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.29.7.194', 'tags': [], 'project_id': '3f853a421bfd499fb1b6abe0c844dda4'}}
2024-09-19 02:42:14,159 - INFO - Created VN ctest-vn-73778000
2024-09-19 02:42:14,221 - DEBUG - VN ctest-vn-73778000 UUID is ce66cdc0-844d-4f87-8258-1eb4fa305880
2024-09-19 02:42:14,366 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-43567633, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-73778000, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-09-19 02:42:14,695 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1e677e2-1073-4245-b22e-c33ea68674cd', 'name': 'ctest-vn-43567633', 'tenant_id': '3f853a421bfd499fb1b6abe0c844dda4', 'project_id': '3f853a421bfd499fb1b6abe0c844dda4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4123bd86-e531-4fcf-8f17-7c94e4621487'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-vn-43567633'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-policy-allow-all-55325330']], 'subnet_ipam': [{'subnet_cidr': '49.225.102.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-19 02:42:14,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce66cdc0-844d-4f87-8258-1eb4fa305880', 'name': 'ctest-vn-73778000', 'tenant_id': '3f853a421bfd499fb1b6abe0c844dda4', 'project_id': '3f853a421bfd499fb1b6abe0c844dda4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bd0a8450-ee17-4789-b20f-765a24d54448'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-vn-73778000'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-policy-allow-all-55325330']], 'subnet_ipam': [{'subnet_cidr': '94.29.7.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-19 02:42:15,061 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-19 02:42:15,423 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-19 02:42:15,468 - DEBUG - Requesting: http://10.0.0.47:8082/domain/0ea4e203-f427-4193-a9ed-2a57acaffb3c
2024-09-19 02:42:15,493 - DEBUG - Requesting: http://10.0.0.47:8082/project/3f853a42-1bfd-499f-b1b6-abe0c844dda4
2024-09-19 02:42:15,592 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/f1e677e2-1073-4245-b22e-c33ea68674cd
2024-09-19 02:42:15,614 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/f1e677e2-1073-4245-b22e-c33ea68674cd
2024-09-19 02:42:15,644 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3da374b-aa90-4b5b-a3dd-dfe7a998d755
2024-09-19 02:42:15,662 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3da374b-aa90-4b5b-a3dd-dfe7a998d755
2024-09-19 02:42:15,674 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/50522a97-c281-42a8-9e96-08288b53f8a1
2024-09-19 02:42:15,685 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-19 02:42:15,686 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/f1e677e2-1073-4245-b22e-c33ea68674cd
2024-09-19 02:42:15,706 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3da374b-aa90-4b5b-a3dd-dfe7a998d755
2024-09-19 02:42:15,734 - INFO - Verified VN network id 8 for VN f1e677e2-1073-4245-b22e-c33ea68674cd
2024-09-19 02:42:15,734 - INFO - Verifications in API Server for VN ctest-vn-43567633 passed
2024-09-19 02:42:15,734 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/f1e677e2-1073-4245-b22e-c33ea68674cd
2024-09-19 02:42:15,752 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3da374b-aa90-4b5b-a3dd-dfe7a998d755
2024-09-19 02:42:15,763 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3da374b-aa90-4b5b-a3dd-dfe7a998d755
2024-09-19 02:42:15,777 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/50522a97-c281-42a8-9e96-08288b53f8a1
2024-09-19 02:42:15,800 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-43567633', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18660460', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17430751220606386757', 'uuid-lslong': '12839414261529081037'}, 'enable': 'true', 'created': '2024-09-19T02:42:13', 'last-modified': '2024-09-19T02:42:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.127133'}
2024-09-19 02:42:15,809 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-19 02:42:15,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43567633 passed
2024-09-19 02:42:15,809 - DEBUG - ====Verifying policy data for ctest-vn-43567633 in API_Server ======
2024-09-19 02:42:15,809 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-19 02:42:15,817 - DEBUG - Requesting: http://10.0.0.47:8082/domain/0ea4e203-f427-4193-a9ed-2a57acaffb3c
2024-09-19 02:42:15,835 - DEBUG - Requesting: http://10.0.0.47:8082/project/3f853a42-1bfd-499f-b1b6-abe0c844dda4
2024-09-19 02:42:15,922 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/f1e677e2-1073-4245-b22e-c33ea68674cd
2024-09-19 02:42:15,939 - DEBUG - ==>Verifying data for policy with id: ce3d835d-11ea-475c-a6f6-2ba5abb83494, fqn: ['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-policy-allow-all-55325330']
2024-09-19 02:42:15,939 - INFO - VN ctest-vn-43567633 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-19 02:42:15,939 - DEBUG - Verifying the vn in opserver
2024-09-19 02:42:15,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-43567633 virtual network link through opserver 10.0.0.47
2024-09-19 02:42:15,940 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-09-19 02:42:16,285 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-09-19 02:42:16,370 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-43567633', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-43567633?flat'}
2024-09-19 02:42:16,370 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-43567633 is found in opserver
2024-09-19 02:42:16,385 - DEBUG - Do not have enough data to verify VN in agent
2024-09-19 02:42:16,392 - DEBUG - VRF ids for VN ctest-vn-43567633: {}
2024-09-19 02:42:16,392 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-19 02:42:16,400 - DEBUG - Requesting: http://10.0.0.47:8082/domain/0ea4e203-f427-4193-a9ed-2a57acaffb3c
2024-09-19 02:42:16,416 - DEBUG - Requesting: http://10.0.0.47:8082/project/3f853a42-1bfd-499f-b1b6-abe0c844dda4
2024-09-19 02:42:16,524 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ce66cdc0-844d-4f87-8258-1eb4fa305880
2024-09-19 02:42:16,546 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ce66cdc0-844d-4f87-8258-1eb4fa305880
2024-09-19 02:42:16,563 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/8416a007-b218-4bfb-9305-1805f1309923
2024-09-19 02:42:16,573 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/8416a007-b218-4bfb-9305-1805f1309923
2024-09-19 02:42:16,584 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/2ce4f5c7-75b7-4722-97e7-f1089deffdcb
2024-09-19 02:42:16,596 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-19 02:42:16,596 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ce66cdc0-844d-4f87-8258-1eb4fa305880
2024-09-19 02:42:16,614 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/8416a007-b218-4bfb-9305-1805f1309923
2024-09-19 02:42:16,637 - INFO - Verified VN network id 9 for VN ce66cdc0-844d-4f87-8258-1eb4fa305880
2024-09-19 02:42:16,637 - INFO - Verifications in API Server for VN ctest-vn-73778000 passed
2024-09-19 02:42:16,637 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ce66cdc0-844d-4f87-8258-1eb4fa305880
2024-09-19 02:42:16,654 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/8416a007-b218-4bfb-9305-1805f1309923
2024-09-19 02:42:16,665 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/8416a007-b218-4bfb-9305-1805f1309923
2024-09-19 02:42:16,674 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/2ce4f5c7-75b7-4722-97e7-f1089deffdcb
2024-09-19 02:42:16,696 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-73778000', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18660460', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14872801046174715783', 'uuid-lslong': '9392290785521588352'}, 'enable': 'true', 'created': '2024-09-19T02:42:13', 'last-modified': '2024-09-19T02:42:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.798473'}
2024-09-19 02:42:16,707 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-19 02:42:16,707 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73778000 passed
2024-09-19 02:42:16,708 - DEBUG - ====Verifying policy data for ctest-vn-73778000 in API_Server ======
2024-09-19 02:42:16,708 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-19 02:42:16,715 - DEBUG - Requesting: http://10.0.0.47:8082/domain/0ea4e203-f427-4193-a9ed-2a57acaffb3c
2024-09-19 02:42:16,735 - DEBUG - Requesting: http://10.0.0.47:8082/project/3f853a42-1bfd-499f-b1b6-abe0c844dda4
2024-09-19 02:42:16,823 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ce66cdc0-844d-4f87-8258-1eb4fa305880
2024-09-19 02:42:16,843 - DEBUG - ==>Verifying data for policy with id: ce3d835d-11ea-475c-a6f6-2ba5abb83494, fqn: ['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-policy-allow-all-55325330']
2024-09-19 02:42:16,843 - INFO - VN ctest-vn-73778000 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-19 02:42:16,843 - DEBUG - Verifying the vn in opserver
2024-09-19 02:42:16,843 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-73778000 virtual network link through opserver 10.0.0.47
2024-09-19 02:42:16,843 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-09-19 02:42:16,860 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-73778000', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-73778000?flat'}
2024-09-19 02:42:16,860 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-73778000 is found in opserver
2024-09-19 02:42:16,877 - DEBUG - Do not have enough data to verify VN in agent
2024-09-19 02:42:16,888 - DEBUG - VRF ids for VN ctest-vn-73778000: {}
2024-09-19 02:42:16,972 - DEBUG - Services list from nova: [