2025-03-25 17:27:57,237 - INFO - Domain Default found not creating
2025-03-25 17:27:57,750 - INFO - Project ctest-TestBasicPolicy-15538534 not found, creating it
2025-03-25 17:27:58,573 - INFO - Created Project:ctest-TestBasicPolicy-15538534, ID : 7721c62a-f6fe-4952-9c75-006682b6ba07
2025-03-25 17:28:00,239 - INFO - ================================================================================
2025-03-25 17:28:00,239 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-25 17:28:00,239 - 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-03-25 17:28:00,502 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.7': '0'}} with
2025-03-25 17:28:00,502 - INFO - Initial checks done. Running the testcase now
2025-03-25 17:28:00,502 - INFO -
2025-03-25 17:28:01,126 - DEBUG - Response for create_network : {'network': {'id': '1a974d7d-af60-4a1d-b675-f224e7a02eaa', 'name': 'ctest-vn-43958955', 'tenant_id': '7721c62af6fe49529c75006682b6ba07', 'project_id': '7721c62af6fe49529c75006682b6ba07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-vn-43958955'], 'port_security_enabled': True, 'description': ''}}
2025-03-25 17:28:01,323 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d5c9577-2edd-4073-9e37-7b0625038aad', 'name': '', 'tenant_id': '7721c62af6fe49529c75006682b6ba07', 'network_id': '1a974d7d-af60-4a1d-b675-f224e7a02eaa', 'ip_version': 4, 'cidr': '211.198.206.128/26', 'allocation_pools': [{'start': '211.198.206.130', 'end': '211.198.206.190'}], 'gateway_ip': '211.198.206.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.198.206.130', 'tags': [], 'project_id': '7721c62af6fe49529c75006682b6ba07'}}
2025-03-25 17:28:01,345 - INFO - Created VN ctest-vn-43958955
2025-03-25 17:28:01,400 - DEBUG - VN ctest-vn-43958955 UUID is 1a974d7d-af60-4a1d-b675-f224e7a02eaa
2025-03-25 17:28:01,732 - DEBUG - Response for create_network : {'network': {'id': '4d83f9d1-02cf-48f4-addf-ebb00ac78b91', 'name': 'ctest-vn-21588253', 'tenant_id': '7721c62af6fe49529c75006682b6ba07', 'project_id': '7721c62af6fe49529c75006682b6ba07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-vn-21588253'], 'port_security_enabled': True, 'description': ''}}
2025-03-25 17:28:01,901 - DEBUG - Response for create_subnet : {'subnet': {'id': '59168c5f-b2c4-43aa-b53e-0374158fd229', 'name': '', 'tenant_id': '7721c62af6fe49529c75006682b6ba07', 'network_id': '4d83f9d1-02cf-48f4-addf-ebb00ac78b91', 'ip_version': 4, 'cidr': '186.149.220.0/26', 'allocation_pools': [{'start': '186.149.220.2', 'end': '186.149.220.62'}], 'gateway_ip': '186.149.220.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.149.220.2', 'tags': [], 'project_id': '7721c62af6fe49529c75006682b6ba07'}}
2025-03-25 17:28:01,933 - INFO - Created VN ctest-vn-21588253
2025-03-25 17:28:01,988 - DEBUG - VN ctest-vn-21588253 UUID is 4d83f9d1-02cf-48f4-addf-ebb00ac78b91
2025-03-25 17:28:02,120 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-43958955, 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-15538534:ctest-vn-21588253, 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-03-25 17:28:02,433 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1a974d7d-af60-4a1d-b675-f224e7a02eaa', 'name': 'ctest-vn-43958955', 'tenant_id': '7721c62af6fe49529c75006682b6ba07', 'project_id': '7721c62af6fe49529c75006682b6ba07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d5c9577-2edd-4073-9e37-7b0625038aad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-vn-43958955'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-policy-allow-all-56345210']], 'subnet_ipam': [{'subnet_cidr': '211.198.206.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-25 17:28:02,687 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d83f9d1-02cf-48f4-addf-ebb00ac78b91', 'name': 'ctest-vn-21588253', 'tenant_id': '7721c62af6fe49529c75006682b6ba07', 'project_id': '7721c62af6fe49529c75006682b6ba07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59168c5f-b2c4-43aa-b53e-0374158fd229'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-vn-21588253'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-policy-allow-all-56345210']], 'subnet_ipam': [{'subnet_cidr': '186.149.220.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-25 17:28:02,888 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-03-25 17:28:03,230 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-03-25 17:28:03,261 - DEBUG - Requesting: http://10.0.0.48:8082/domain/230ad001-b8c0-4ea3-a451-08fba16937b4
2025-03-25 17:28:03,276 - DEBUG - Requesting: http://10.0.0.48:8082/project/7721c62a-f6fe-4952-9c75-006682b6ba07
2025-03-25 17:28:03,362 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1a974d7d-af60-4a1d-b675-f224e7a02eaa
2025-03-25 17:28:03,383 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1a974d7d-af60-4a1d-b675-f224e7a02eaa
2025-03-25 17:28:03,404 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2ced801a-ca9c-4e31-ba02-5913b321c749
2025-03-25 17:28:03,416 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2ced801a-ca9c-4e31-ba02-5913b321c749
2025-03-25 17:28:03,427 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/44498cfc-aefe-4520-a57f-f88245769858
2025-03-25 17:28:03,439 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-25 17:28:03,439 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1a974d7d-af60-4a1d-b675-f224e7a02eaa
2025-03-25 17:28:03,455 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2ced801a-ca9c-4e31-ba02-5913b321c749
2025-03-25 17:28:03,484 - INFO - Verified VN network id 8 for VN 1a974d7d-af60-4a1d-b675-f224e7a02eaa
2025-03-25 17:28:03,484 - INFO - Verifications in API Server for VN ctest-vn-43958955 passed
2025-03-25 17:28:03,484 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1a974d7d-af60-4a1d-b675-f224e7a02eaa
2025-03-25 17:28:03,503 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2ced801a-ca9c-4e31-ba02-5913b321c749
2025-03-25 17:28:03,513 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2ced801a-ca9c-4e31-ba02-5913b321c749
2025-03-25 17:28:03,523 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/44498cfc-aefe-4520-a57f-f88245769858
2025-03-25 17:28:03,541 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-43958955', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15538534', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1916085368678009373', 'uuid-lslong': '13147680927496810154'}, 'enable': 'true', 'created': '2025-03-25T17:28:01', 'last-modified': '2025-03-25T17:28:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.139200'}
2025-03-25 17:28:03,550 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-25 17:28:03,550 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43958955 passed
2025-03-25 17:28:03,550 - DEBUG - ====Verifying policy data for ctest-vn-43958955 in API_Server ======
2025-03-25 17:28:03,550 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-03-25 17:28:03,560 - DEBUG - Requesting: http://10.0.0.48:8082/domain/230ad001-b8c0-4ea3-a451-08fba16937b4
2025-03-25 17:28:03,581 - DEBUG - Requesting: http://10.0.0.48:8082/project/7721c62a-f6fe-4952-9c75-006682b6ba07
2025-03-25 17:28:03,664 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1a974d7d-af60-4a1d-b675-f224e7a02eaa
2025-03-25 17:28:03,677 - DEBUG - ==>Verifying data for policy with id: e0e06d1d-a111-484c-9f37-99f5b16e4665, fqn: ['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-policy-allow-all-56345210']
2025-03-25 17:28:03,677 - INFO - VN ctest-vn-43958955 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-25 17:28:03,677 - DEBUG - Verifying the vn in opserver
2025-03-25 17:28:03,677 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-43958955 virtual network link through opserver 10.0.0.48
2025-03-25 17:28:03,677 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-03-25 17:28:04,014 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-03-25 17:28:04,080 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-43958955', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-43958955?flat'}
2025-03-25 17:28:04,080 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-43958955 is found in opserver
2025-03-25 17:28:04,094 - DEBUG - Do not have enough data to verify VN in agent
2025-03-25 17:28:04,100 - DEBUG - VRF ids for VN ctest-vn-43958955: {}
2025-03-25 17:28:04,100 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-03-25 17:28:04,107 - DEBUG - Requesting: http://10.0.0.48:8082/domain/230ad001-b8c0-4ea3-a451-08fba16937b4
2025-03-25 17:28:04,119 - DEBUG - Requesting: http://10.0.0.48:8082/project/7721c62a-f6fe-4952-9c75-006682b6ba07
2025-03-25 17:28:04,195 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4d83f9d1-02cf-48f4-addf-ebb00ac78b91
2025-03-25 17:28:04,211 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4d83f9d1-02cf-48f4-addf-ebb00ac78b91
2025-03-25 17:28:04,223 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1448ddda-8d48-4383-8624-a9d642a49f1f
2025-03-25 17:28:04,232 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1448ddda-8d48-4383-8624-a9d642a49f1f
2025-03-25 17:28:04,241 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/0389e531-b111-42fd-afec-c7db7ef3166b
2025-03-25 17:28:04,250 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-25 17:28:04,250 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4d83f9d1-02cf-48f4-addf-ebb00ac78b91
2025-03-25 17:28:04,266 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1448ddda-8d48-4383-8624-a9d642a49f1f
2025-03-25 17:28:04,290 - INFO - Verified VN network id 9 for VN 4d83f9d1-02cf-48f4-addf-ebb00ac78b91
2025-03-25 17:28:04,290 - INFO - Verifications in API Server for VN ctest-vn-21588253 passed
2025-03-25 17:28:04,290 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4d83f9d1-02cf-48f4-addf-ebb00ac78b91
2025-03-25 17:28:04,308 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1448ddda-8d48-4383-8624-a9d642a49f1f
2025-03-25 17:28:04,318 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1448ddda-8d48-4383-8624-a9d642a49f1f
2025-03-25 17:28:04,328 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/0389e531-b111-42fd-afec-c7db7ef3166b
2025-03-25 17:28:04,344 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-21588253', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15538534', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5585582638960167156', 'uuid-lslong': '12528991829695630225'}, 'enable': 'true', 'created': '2025-03-25T17:28:01', 'last-modified': '2025-03-25T17:28:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.683291'}
2025-03-25 17:28:04,353 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-25 17:28:04,353 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21588253 passed
2025-03-25 17:28:04,354 - DEBUG - ====Verifying policy data for ctest-vn-21588253 in API_Server ======
2025-03-25 17:28:04,354 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-03-25 17:28:04,362 - DEBUG - Requesting: http://10.0.0.48:8082/domain/230ad001-b8c0-4ea3-a451-08fba16937b4
2025-03-25 17:28:04,377 - DEBUG - Requesting: http://10.0.0.48:8082/project/7721c62a-f6fe-4952-9c75-006682b6ba07
2025-03-25 17:28:04,455 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4d83f9d1-02cf-48f4-addf-ebb00ac78b91
2025-03-25 17:28:04,466 - DEBUG - ==>Verifying data for policy with id: e0e06d1d-a111-484c-9f37-99f5b16e4665, fqn: ['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-policy-allow-all-56345210']
2025-03-25 17:28:04,466 - INFO - VN ctest-vn-21588253 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-25 17:28:04,466 - DEBUG - Verifying the vn in opserver
2025-03-25 17:28:04,466 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-21588253 virtual network link through opserver 10.0.0.48
2025-03-25 17:28:04,467 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-03-25 17:28:04,479 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-21588253', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-21588253?flat'}
2025-03-25 17:28:04,480 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-21588253 is found in opserver
2025-03-25 17:28:04,495 - DEBUG - Do not have enough data to verify VN in agent
2025-03-25 17:28:04,501 - DEBUG - VRF ids for VN ctest-vn-21588253: {}
2025-03-25 17:28:04,568 - DEBUG - Services list from nova: [