2025-02-03 02:30:01,568 - INFO - Domain Default found not creating
2025-02-03 02:30:01,775 - INFO - Project ctest-TestBasicPolicy-61085092 not found, creating it
2025-02-03 02:30:02,299 - INFO - Created Project:ctest-TestBasicPolicy-61085092, ID : 97e2ac87-1bd5-49d0-b54a-89e5ed0f829d
2025-02-03 02:30:04,044 - INFO - ================================================================================
2025-02-03 02:30:04,044 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-03 02:30:04,044 - 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 02:30:04,302 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.30': '0'}} with
2025-02-03 02:30:04,303 - INFO - Initial checks done. Running the testcase now
2025-02-03 02:30:04,303 - INFO -
2025-02-03 02:30:04,960 - DEBUG - Response for create_network : {'network': {'id': 'd252c499-064b-4512-b0cb-7b208120834a', 'name': 'ctest-vn-70034718', 'tenant_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'project_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-vn-70034718'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 02:30:05,191 - DEBUG - Response for create_subnet : {'subnet': {'id': '34595f36-fafc-41e8-a8d9-44b3c9be2f27', 'name': '', 'tenant_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'network_id': 'd252c499-064b-4512-b0cb-7b208120834a', 'ip_version': 4, 'cidr': '207.238.55.128/26', 'allocation_pools': [{'start': '207.238.55.130', 'end': '207.238.55.190'}], 'gateway_ip': '207.238.55.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.238.55.130', 'tags': [], 'project_id': '97e2ac871bd549d0b54a89e5ed0f829d'}}
2025-02-03 02:30:05,220 - INFO - Created VN ctest-vn-70034718
2025-02-03 02:30:05,275 - DEBUG - VN ctest-vn-70034718 UUID is d252c499-064b-4512-b0cb-7b208120834a
2025-02-03 02:30:05,604 - DEBUG - Response for create_network : {'network': {'id': 'b5b0f8a9-769d-4a69-8969-84e90470a609', 'name': 'ctest-vn-25392636', 'tenant_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'project_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-vn-25392636'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 02:30:05,839 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd849f6c3-6631-4871-bc55-6feeb52f1f5f', 'name': '', 'tenant_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'network_id': 'b5b0f8a9-769d-4a69-8969-84e90470a609', 'ip_version': 4, 'cidr': '68.192.63.0/26', 'allocation_pools': [{'start': '68.192.63.2', 'end': '68.192.63.62'}], 'gateway_ip': '68.192.63.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.192.63.2', 'tags': [], 'project_id': '97e2ac871bd549d0b54a89e5ed0f829d'}}
2025-02-03 02:30:05,862 - INFO - Created VN ctest-vn-25392636
2025-02-03 02:30:05,915 - DEBUG - VN ctest-vn-25392636 UUID is b5b0f8a9-769d-4a69-8969-84e90470a609
2025-02-03 02:30:06,049 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-70034718, 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-61085092:ctest-vn-25392636, 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 02:30:06,386 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd252c499-064b-4512-b0cb-7b208120834a', 'name': 'ctest-vn-70034718', 'tenant_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'project_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34595f36-fafc-41e8-a8d9-44b3c9be2f27'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-vn-70034718'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-policy-allow-all-11552901']], 'subnet_ipam': [{'subnet_cidr': '207.238.55.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 02:30:06,624 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5b0f8a9-769d-4a69-8969-84e90470a609', 'name': 'ctest-vn-25392636', 'tenant_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'project_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d849f6c3-6631-4871-bc55-6feeb52f1f5f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-vn-25392636'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-policy-allow-all-11552901']], 'subnet_ipam': [{'subnet_cidr': '68.192.63.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 02:30:06,775 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-03 02:30:07,129 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-03 02:30:07,161 - DEBUG - Requesting: http://10.0.0.24:8082/domain/fe7b4303-0615-4105-9f87-712246d742e1
2025-02-03 02:30:07,178 - DEBUG - Requesting: http://10.0.0.24:8082/project/97e2ac87-1bd5-49d0-b54a-89e5ed0f829d
2025-02-03 02:30:07,250 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d252c499-064b-4512-b0cb-7b208120834a
2025-02-03 02:30:07,262 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d252c499-064b-4512-b0cb-7b208120834a
2025-02-03 02:30:07,272 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0803f98c-ca2e-4ec0-abbf-b73191bdd692
2025-02-03 02:30:07,280 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0803f98c-ca2e-4ec0-abbf-b73191bdd692
2025-02-03 02:30:07,288 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/1d0a4d0f-8c9c-43b1-9cc7-6a1951f2c156
2025-02-03 02:30:07,295 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 02:30:07,296 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d252c499-064b-4512-b0cb-7b208120834a
2025-02-03 02:30:07,305 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0803f98c-ca2e-4ec0-abbf-b73191bdd692
2025-02-03 02:30:07,319 - INFO - Verified VN network id 7 for VN d252c499-064b-4512-b0cb-7b208120834a
2025-02-03 02:30:07,319 - INFO - Verifications in API Server for VN ctest-vn-70034718 passed
2025-02-03 02:30:07,319 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d252c499-064b-4512-b0cb-7b208120834a
2025-02-03 02:30:07,329 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0803f98c-ca2e-4ec0-abbf-b73191bdd692
2025-02-03 02:30:07,339 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0803f98c-ca2e-4ec0-abbf-b73191bdd692
2025-02-03 02:30:07,347 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/1d0a4d0f-8c9c-43b1-9cc7-6a1951f2c156
2025-02-03 02:30:07,360 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-70034718', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61085092', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15155391857569776914', 'uuid-lslong': '12739411350483141450'}, 'enable': 'true', 'created': '2025-02-03T02:30:04', 'last-modified': '2025-02-03T02:30:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.007839'}
2025-02-03 02:30:07,368 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 02:30:07,368 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70034718 passed
2025-02-03 02:30:07,368 - DEBUG - ====Verifying policy data for ctest-vn-70034718 in API_Server ======
2025-02-03 02:30:07,368 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-03 02:30:07,375 - DEBUG - Requesting: http://10.0.0.24:8082/domain/fe7b4303-0615-4105-9f87-712246d742e1
2025-02-03 02:30:07,389 - DEBUG - Requesting: http://10.0.0.24:8082/project/97e2ac87-1bd5-49d0-b54a-89e5ed0f829d
2025-02-03 02:30:07,463 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d252c499-064b-4512-b0cb-7b208120834a
2025-02-03 02:30:07,473 - DEBUG - ==>Verifying data for policy with id: c3e9c2da-0327-4871-af8f-d0cec016aeac, fqn: ['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-policy-allow-all-11552901']
2025-02-03 02:30:07,473 - INFO - VN ctest-vn-70034718 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 02:30:07,473 - DEBUG - Verifying the vn in opserver
2025-02-03 02:30:07,473 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-70034718 virtual network link through opserver 10.0.0.24
2025-02-03 02:30:07,473 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-03 02:30:07,819 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-03 02:30:07,885 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-70034718', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-70034718?flat'}
2025-02-03 02:30:07,885 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-70034718 is found in opserver
2025-02-03 02:30:07,899 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 02:30:07,905 - DEBUG - VRF ids for VN ctest-vn-70034718: {}
2025-02-03 02:30:07,905 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-03 02:30:07,913 - DEBUG - Requesting: http://10.0.0.24:8082/domain/fe7b4303-0615-4105-9f87-712246d742e1
2025-02-03 02:30:07,927 - DEBUG - Requesting: http://10.0.0.24:8082/project/97e2ac87-1bd5-49d0-b54a-89e5ed0f829d
2025-02-03 02:30:08,006 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b5b0f8a9-769d-4a69-8969-84e90470a609
2025-02-03 02:30:08,019 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b5b0f8a9-769d-4a69-8969-84e90470a609
2025-02-03 02:30:08,030 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c468a241-eedf-4dad-8a78-572603e2c500
2025-02-03 02:30:08,039 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c468a241-eedf-4dad-8a78-572603e2c500
2025-02-03 02:30:08,048 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/8eaf8eac-8f99-460a-a6aa-2fed4ac2429d
2025-02-03 02:30:08,057 - DEBUG - Route Targets: ['target:64512:8000006']
2025-02-03 02:30:08,057 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b5b0f8a9-769d-4a69-8969-84e90470a609
2025-02-03 02:30:08,068 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c468a241-eedf-4dad-8a78-572603e2c500
2025-02-03 02:30:08,084 - INFO - Verified VN network id 8 for VN b5b0f8a9-769d-4a69-8969-84e90470a609
2025-02-03 02:30:08,084 - INFO - Verifications in API Server for VN ctest-vn-25392636 passed
2025-02-03 02:30:08,084 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b5b0f8a9-769d-4a69-8969-84e90470a609
2025-02-03 02:30:08,095 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c468a241-eedf-4dad-8a78-572603e2c500
2025-02-03 02:30:08,103 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c468a241-eedf-4dad-8a78-572603e2c500
2025-02-03 02:30:08,112 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/8eaf8eac-8f99-460a-a6aa-2fed4ac2429d
2025-02-03 02:30:08,127 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-25392636', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61085092', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13092237523489213033', 'uuid-lslong': '9901591392087483913'}, 'enable': 'true', 'created': '2025-02-03T02:30:05', 'last-modified': '2025-02-03T02:30:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.528736'}
2025-02-03 02:30:08,135 - DEBUG - Route Targets: ['target:64512:8000006']
2025-02-03 02:30:08,135 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25392636 passed
2025-02-03 02:30:08,135 - DEBUG - ====Verifying policy data for ctest-vn-25392636 in API_Server ======
2025-02-03 02:30:08,135 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-03 02:30:08,142 - DEBUG - Requesting: http://10.0.0.24:8082/domain/fe7b4303-0615-4105-9f87-712246d742e1
2025-02-03 02:30:08,157 - DEBUG - Requesting: http://10.0.0.24:8082/project/97e2ac87-1bd5-49d0-b54a-89e5ed0f829d
2025-02-03 02:30:08,231 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b5b0f8a9-769d-4a69-8969-84e90470a609
2025-02-03 02:30:08,242 - DEBUG - ==>Verifying data for policy with id: c3e9c2da-0327-4871-af8f-d0cec016aeac, fqn: ['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-policy-allow-all-11552901']
2025-02-03 02:30:08,243 - INFO - VN ctest-vn-25392636 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 02:30:08,243 - DEBUG - Verifying the vn in opserver
2025-02-03 02:30:08,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-25392636 virtual network link through opserver 10.0.0.24
2025-02-03 02:30:08,243 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-03 02:30:08,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-25392636', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-25392636?flat'}
2025-02-03 02:30:08,257 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-25392636 is found in opserver
2025-02-03 02:30:08,272 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 02:30:08,280 - DEBUG - VRF ids for VN ctest-vn-25392636: {}
2025-02-03 02:30:08,351 - DEBUG - Services list from nova: [