2025-02-03 21:27:36,565 - INFO - Domain Default found not creating
2025-02-03 21:27:36,726 - INFO - Project ctest-TestBasicPolicy-48201126 not found, creating it
2025-02-03 21:27:37,277 - INFO - Created Project:ctest-TestBasicPolicy-48201126, ID : 22eb6cae-548e-4297-874b-8d429a60418e
2025-02-03 21:27:38,772 - INFO - ================================================================================
2025-02-03 21:27:38,772 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-03 21:27:38,772 - 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
2025-02-03 21:27:39,036 - DEBUG - Nothing to compare xmpp stats {'10.0.0.54': {'10.20.0.8': '0'}} with
2025-02-03 21:27:39,036 - INFO - Initial checks done. Running the testcase now
2025-02-03 21:27:39,036 - INFO -
2025-02-03 21:27:39,860 - DEBUG - Response for create_network : {'network': {'id': '470d0fcd-39ea-4de9-8d0e-638ac1e6cf41', 'name': 'ctest-vn-38814137', 'tenant_id': '22eb6cae548e4297874b8d429a60418e', 'project_id': '22eb6cae548e4297874b8d429a60418e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-vn-38814137'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 21:27:40,089 - DEBUG - Response for create_subnet : {'subnet': {'id': '79af42bb-084f-4843-847f-418a04d3f65d', 'name': '', 'tenant_id': '22eb6cae548e4297874b8d429a60418e', 'network_id': '470d0fcd-39ea-4de9-8d0e-638ac1e6cf41', 'ip_version': 4, 'cidr': '201.252.81.192/26', 'allocation_pools': [{'start': '201.252.81.194', 'end': '201.252.81.254'}], 'gateway_ip': '201.252.81.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.252.81.194', 'tags': [], 'project_id': '22eb6cae548e4297874b8d429a60418e'}}
2025-02-03 21:27:40,107 - INFO - Created VN ctest-vn-38814137
2025-02-03 21:27:40,162 - DEBUG - VN ctest-vn-38814137 UUID is 470d0fcd-39ea-4de9-8d0e-638ac1e6cf41
2025-02-03 21:27:40,508 - DEBUG - Response for create_network : {'network': {'id': 'ec4a73da-7fb2-4028-ad59-ebb7d55f0e96', 'name': 'ctest-vn-18220583', 'tenant_id': '22eb6cae548e4297874b8d429a60418e', 'project_id': '22eb6cae548e4297874b8d429a60418e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-vn-18220583'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 21:27:40,689 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a1bd30e-9f24-4571-bf4a-e5af85b3e4eb', 'name': '', 'tenant_id': '22eb6cae548e4297874b8d429a60418e', 'network_id': 'ec4a73da-7fb2-4028-ad59-ebb7d55f0e96', 'ip_version': 4, 'cidr': '122.126.182.128/26', 'allocation_pools': [{'start': '122.126.182.130', 'end': '122.126.182.190'}], 'gateway_ip': '122.126.182.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.126.182.130', 'tags': [], 'project_id': '22eb6cae548e4297874b8d429a60418e'}}
2025-02-03 21:27:40,710 - INFO - Created VN ctest-vn-18220583
2025-02-03 21:27:40,762 - DEBUG - VN ctest-vn-18220583 UUID is ec4a73da-7fb2-4028-ad59-ebb7d55f0e96
2025-02-03 21:27:40,884 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-38814137, 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-48201126:ctest-vn-18220583, 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]
2025-02-03 21:27:41,196 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '470d0fcd-39ea-4de9-8d0e-638ac1e6cf41', 'name': 'ctest-vn-38814137', 'tenant_id': '22eb6cae548e4297874b8d429a60418e', 'project_id': '22eb6cae548e4297874b8d429a60418e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79af42bb-084f-4843-847f-418a04d3f65d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-vn-38814137'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-policy-allow-all-26453171']], 'subnet_ipam': [{'subnet_cidr': '201.252.81.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 21:27:41,444 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec4a73da-7fb2-4028-ad59-ebb7d55f0e96', 'name': 'ctest-vn-18220583', 'tenant_id': '22eb6cae548e4297874b8d429a60418e', 'project_id': '22eb6cae548e4297874b8d429a60418e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a1bd30e-9f24-4571-bf4a-e5af85b3e4eb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-vn-18220583'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-policy-allow-all-26453171']], 'subnet_ipam': [{'subnet_cidr': '122.126.182.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 21:27:41,618 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-02-03 21:27:41,916 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-02-03 21:27:41,948 - DEBUG - Requesting: http://10.0.0.54:8082/domain/98da5389-eea1-4714-8957-841f991065c3
2025-02-03 21:27:41,964 - DEBUG - Requesting: http://10.0.0.54:8082/project/22eb6cae-548e-4297-874b-8d429a60418e
2025-02-03 21:27:42,056 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/470d0fcd-39ea-4de9-8d0e-638ac1e6cf41
2025-02-03 21:27:42,068 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/470d0fcd-39ea-4de9-8d0e-638ac1e6cf41
2025-02-03 21:27:42,079 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/43642868-de04-45b8-ae59-1f108202bba9
2025-02-03 21:27:42,088 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/43642868-de04-45b8-ae59-1f108202bba9
2025-02-03 21:27:42,097 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/95fd1f0e-28a2-496a-b7b5-69188dc6b6d7
2025-02-03 21:27:42,105 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 21:27:42,105 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/470d0fcd-39ea-4de9-8d0e-638ac1e6cf41
2025-02-03 21:27:42,117 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/43642868-de04-45b8-ae59-1f108202bba9
2025-02-03 21:27:42,133 - INFO - Verified VN network id 8 for VN 470d0fcd-39ea-4de9-8d0e-638ac1e6cf41
2025-02-03 21:27:42,133 - INFO - Verifications in API Server for VN ctest-vn-38814137 passed
2025-02-03 21:27:42,133 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/470d0fcd-39ea-4de9-8d0e-638ac1e6cf41
2025-02-03 21:27:42,144 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/43642868-de04-45b8-ae59-1f108202bba9
2025-02-03 21:27:42,153 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/43642868-de04-45b8-ae59-1f108202bba9
2025-02-03 21:27:42,161 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/95fd1f0e-28a2-496a-b7b5-69188dc6b6d7
2025-02-03 21:27:42,176 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-38814137', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48201126', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5119765725504490985', 'uuid-lslong': '10164170856631553857'}, 'enable': 'true', 'created': '2025-02-03T21:27:39', 'last-modified': '2025-02-03T21:27:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.007238'}
2025-02-03 21:27:42,184 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 21:27:42,184 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38814137 passed
2025-02-03 21:27:42,184 - DEBUG - ====Verifying policy data for ctest-vn-38814137 in API_Server ======
2025-02-03 21:27:42,184 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-02-03 21:27:42,191 - DEBUG - Requesting: http://10.0.0.54:8082/domain/98da5389-eea1-4714-8957-841f991065c3
2025-02-03 21:27:42,204 - DEBUG - Requesting: http://10.0.0.54:8082/project/22eb6cae-548e-4297-874b-8d429a60418e
2025-02-03 21:27:42,279 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/470d0fcd-39ea-4de9-8d0e-638ac1e6cf41
2025-02-03 21:27:42,290 - DEBUG - ==>Verifying data for policy with id: a8ec0026-3511-48f1-8266-e94db9f01f82, fqn: ['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-policy-allow-all-26453171']
2025-02-03 21:27:42,290 - INFO - VN ctest-vn-38814137 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 21:27:42,290 - DEBUG - Verifying the vn in opserver
2025-02-03 21:27:42,290 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-38814137 virtual network link through opserver 10.0.0.54
2025-02-03 21:27:42,290 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2025-02-03 21:27:42,589 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2025-02-03 21:27:42,644 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-38814137', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-38814137?flat'}
2025-02-03 21:27:42,644 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-38814137 is found in opserver
2025-02-03 21:27:42,658 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 21:27:42,664 - DEBUG - VRF ids for VN ctest-vn-38814137: {}
2025-02-03 21:27:42,664 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-02-03 21:27:42,670 - DEBUG - Requesting: http://10.0.0.54:8082/domain/98da5389-eea1-4714-8957-841f991065c3
2025-02-03 21:27:42,683 - DEBUG - Requesting: http://10.0.0.54:8082/project/22eb6cae-548e-4297-874b-8d429a60418e
2025-02-03 21:27:42,758 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/ec4a73da-7fb2-4028-ad59-ebb7d55f0e96
2025-02-03 21:27:42,771 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/ec4a73da-7fb2-4028-ad59-ebb7d55f0e96
2025-02-03 21:27:42,780 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/42add5b3-bfbd-4002-a6c4-b8e30455ee5d
2025-02-03 21:27:42,788 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/42add5b3-bfbd-4002-a6c4-b8e30455ee5d
2025-02-03 21:27:42,796 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/a1658d96-2a34-464d-93e1-b7f922fbd0d9
2025-02-03 21:27:42,804 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 21:27:42,804 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/ec4a73da-7fb2-4028-ad59-ebb7d55f0e96
2025-02-03 21:27:42,817 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/42add5b3-bfbd-4002-a6c4-b8e30455ee5d
2025-02-03 21:27:42,834 - INFO - Verified VN network id 9 for VN ec4a73da-7fb2-4028-ad59-ebb7d55f0e96
2025-02-03 21:27:42,834 - INFO - Verifications in API Server for VN ctest-vn-18220583 passed
2025-02-03 21:27:42,835 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/ec4a73da-7fb2-4028-ad59-ebb7d55f0e96
2025-02-03 21:27:42,847 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/42add5b3-bfbd-4002-a6c4-b8e30455ee5d
2025-02-03 21:27:42,856 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/42add5b3-bfbd-4002-a6c4-b8e30455ee5d
2025-02-03 21:27:42,864 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/a1658d96-2a34-464d-93e1-b7f922fbd0d9
2025-02-03 21:27:42,876 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-18220583', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48201126', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17026548723510034472', 'uuid-lslong': '12491274216280100502'}, 'enable': 'true', 'created': '2025-02-03T21:27:40', 'last-modified': '2025-02-03T21:27:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.461222'}
2025-02-03 21:27:42,882 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 21:27:42,882 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18220583 passed
2025-02-03 21:27:42,882 - DEBUG - ====Verifying policy data for ctest-vn-18220583 in API_Server ======
2025-02-03 21:27:42,882 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-02-03 21:27:42,888 - DEBUG - Requesting: http://10.0.0.54:8082/domain/98da5389-eea1-4714-8957-841f991065c3
2025-02-03 21:27:42,901 - DEBUG - Requesting: http://10.0.0.54:8082/project/22eb6cae-548e-4297-874b-8d429a60418e
2025-02-03 21:27:42,972 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/ec4a73da-7fb2-4028-ad59-ebb7d55f0e96
2025-02-03 21:27:42,984 - DEBUG - ==>Verifying data for policy with id: a8ec0026-3511-48f1-8266-e94db9f01f82, fqn: ['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-policy-allow-all-26453171']
2025-02-03 21:27:42,984 - INFO - VN ctest-vn-18220583 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 21:27:42,984 - DEBUG - Verifying the vn in opserver
2025-02-03 21:27:42,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-18220583 virtual network link through opserver 10.0.0.54
2025-02-03 21:27:42,984 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2025-02-03 21:27:42,995 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-18220583', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-18220583?flat'}
2025-02-03 21:27:42,995 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-18220583 is found in opserver
2025-02-03 21:27:43,006 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 21:27:43,011 - DEBUG - VRF ids for VN ctest-vn-18220583: {}
2025-02-03 21:27:43,070 - DEBUG - Services list from nova: [