2025-07-21 02:23:25,239 - INFO - Domain Default found not creating
2025-07-21 02:23:25,400 - INFO - Project ctest-TestBasicPolicy-04810560 not found, creating it
2025-07-21 02:23:25,886 - INFO - Created Project:ctest-TestBasicPolicy-04810560, ID : c9d9bc21-a939-42e8-81d9-eea3232e05fa
2025-07-21 02:23:27,374 - INFO - ================================================================================
2025-07-21 02:23:27,375 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-21 02:23:27,375 - 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-07-21 02:23:27,629 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.18': '0'}} with
2025-07-21 02:23:27,629 - INFO - Initial checks done. Running the testcase now
2025-07-21 02:23:27,629 - INFO -
2025-07-21 02:23:28,264 - DEBUG - Response for create_network : {'network': {'id': '3c731e35-2c43-4699-97f7-27d218421a4c', 'name': 'ctest-vn-41032000', 'tenant_id': 'c9d9bc21a93942e881d9eea3232e05fa', 'project_id': 'c9d9bc21a93942e881d9eea3232e05fa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04810560', 'ctest-vn-41032000'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 02:23:28,459 - DEBUG - Response for create_subnet : {'subnet': {'id': '02146b82-6aac-48c9-b9c5-6eec1137330b', 'name': '', 'tenant_id': 'c9d9bc21a93942e881d9eea3232e05fa', 'network_id': '3c731e35-2c43-4699-97f7-27d218421a4c', 'ip_version': 4, 'cidr': '49.200.49.64/26', 'allocation_pools': [{'start': '49.200.49.66', 'end': '49.200.49.126'}], 'gateway_ip': '49.200.49.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.200.49.66', 'tags': [], 'project_id': 'c9d9bc21a93942e881d9eea3232e05fa'}}
2025-07-21 02:23:28,479 - INFO - Created VN ctest-vn-41032000
2025-07-21 02:23:28,534 - DEBUG - VN ctest-vn-41032000 UUID is 3c731e35-2c43-4699-97f7-27d218421a4c
2025-07-21 02:23:28,847 - DEBUG - Response for create_network : {'network': {'id': '8ac7dc7d-058a-46e4-9e31-f5b36d391794', 'name': 'ctest-vn-63335576', 'tenant_id': 'c9d9bc21a93942e881d9eea3232e05fa', 'project_id': 'c9d9bc21a93942e881d9eea3232e05fa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04810560', 'ctest-vn-63335576'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 02:23:29,061 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b7266ce-df70-4b59-aec6-b7a0aedd3a7f', 'name': '', 'tenant_id': 'c9d9bc21a93942e881d9eea3232e05fa', 'network_id': '8ac7dc7d-058a-46e4-9e31-f5b36d391794', 'ip_version': 4, 'cidr': '82.119.38.0/26', 'allocation_pools': [{'start': '82.119.38.2', 'end': '82.119.38.62'}], 'gateway_ip': '82.119.38.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.119.38.2', 'tags': [], 'project_id': 'c9d9bc21a93942e881d9eea3232e05fa'}}
2025-07-21 02:23:29,080 - INFO - Created VN ctest-vn-63335576
2025-07-21 02:23:29,134 - DEBUG - VN ctest-vn-63335576 UUID is 8ac7dc7d-058a-46e4-9e31-f5b36d391794
2025-07-21 02:23:29,255 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04810560:ctest-vn-41032000, 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-04810560:ctest-vn-63335576, 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-07-21 02:23:29,582 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c731e35-2c43-4699-97f7-27d218421a4c', 'name': 'ctest-vn-41032000', 'tenant_id': 'c9d9bc21a93942e881d9eea3232e05fa', 'project_id': 'c9d9bc21a93942e881d9eea3232e05fa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02146b82-6aac-48c9-b9c5-6eec1137330b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04810560', 'ctest-vn-41032000'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04810560', 'ctest-policy-allow-all-28173531']], 'subnet_ipam': [{'subnet_cidr': '49.200.49.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 02:23:29,833 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8ac7dc7d-058a-46e4-9e31-f5b36d391794', 'name': 'ctest-vn-63335576', 'tenant_id': 'c9d9bc21a93942e881d9eea3232e05fa', 'project_id': 'c9d9bc21a93942e881d9eea3232e05fa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b7266ce-df70-4b59-aec6-b7a0aedd3a7f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04810560', 'ctest-vn-63335576'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04810560', 'ctest-policy-allow-all-28173531']], 'subnet_ipam': [{'subnet_cidr': '82.119.38.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 02:23:30,014 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 02:23:30,325 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 02:23:30,358 - DEBUG - Requesting: http://10.0.0.254:8082/domain/639b5bae-c70f-427c-98b7-e9f911b8621e
2025-07-21 02:23:30,372 - DEBUG - Requesting: http://10.0.0.254:8082/project/c9d9bc21-a939-42e8-81d9-eea3232e05fa
2025-07-21 02:23:30,446 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c731e35-2c43-4699-97f7-27d218421a4c
2025-07-21 02:23:30,459 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c731e35-2c43-4699-97f7-27d218421a4c
2025-07-21 02:23:30,471 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ce0e69d-46ed-4eea-a86e-d3412fbdf88d
2025-07-21 02:23:30,480 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ce0e69d-46ed-4eea-a86e-d3412fbdf88d
2025-07-21 02:23:30,489 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fcadfe31-cf5a-4e5d-84b9-1298521c74b1
2025-07-21 02:23:30,497 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 02:23:30,497 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c731e35-2c43-4699-97f7-27d218421a4c
2025-07-21 02:23:30,508 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ce0e69d-46ed-4eea-a86e-d3412fbdf88d
2025-07-21 02:23:30,526 - INFO - Verified VN network id 9 for VN 3c731e35-2c43-4699-97f7-27d218421a4c
2025-07-21 02:23:30,527 - INFO - Verifications in API Server for VN ctest-vn-41032000 passed
2025-07-21 02:23:30,527 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c731e35-2c43-4699-97f7-27d218421a4c
2025-07-21 02:23:30,539 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ce0e69d-46ed-4eea-a86e-d3412fbdf88d
2025-07-21 02:23:30,547 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ce0e69d-46ed-4eea-a86e-d3412fbdf88d
2025-07-21 02:23:30,556 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fcadfe31-cf5a-4e5d-84b9-1298521c74b1
2025-07-21 02:23:30,570 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04810560:ctest-vn-41032000', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04810560', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4355858478322108057', 'uuid-lslong': '10950264802278251084'}, 'enable': 'true', 'created': '2025-07-21T02:23:28', 'last-modified': '2025-07-21T02:23:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.015058'}
2025-07-21 02:23:30,578 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 02:23:30,578 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41032000 passed
2025-07-21 02:23:30,578 - DEBUG - ====Verifying policy data for ctest-vn-41032000 in API_Server ======
2025-07-21 02:23:30,578 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 02:23:30,585 - DEBUG - Requesting: http://10.0.0.254:8082/domain/639b5bae-c70f-427c-98b7-e9f911b8621e
2025-07-21 02:23:30,601 - DEBUG - Requesting: http://10.0.0.254:8082/project/c9d9bc21-a939-42e8-81d9-eea3232e05fa
2025-07-21 02:23:30,676 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c731e35-2c43-4699-97f7-27d218421a4c
2025-07-21 02:23:30,695 - DEBUG - ==>Verifying data for policy with id: 987334f9-fd05-4ccb-9465-818ed875a443, fqn: ['default-domain', 'ctest-TestBasicPolicy-04810560', 'ctest-policy-allow-all-28173531']
2025-07-21 02:23:30,695 - INFO - VN ctest-vn-41032000 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 02:23:30,695 - DEBUG - Verifying the vn in opserver
2025-07-21 02:23:30,695 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04810560:ctest-vn-41032000 virtual network link through opserver 10.0.0.254
2025-07-21 02:23:30,695 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-21 02:23:30,990 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-21 02:23:31,055 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04810560:ctest-vn-41032000', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04810560:ctest-vn-41032000?flat'}
2025-07-21 02:23:31,055 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04810560:ctest-vn-41032000 is found in opserver
2025-07-21 02:23:31,067 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 02:23:31,073 - DEBUG - VRF ids for VN ctest-vn-41032000: {}
2025-07-21 02:23:31,073 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 02:23:31,080 - DEBUG - Requesting: http://10.0.0.254:8082/domain/639b5bae-c70f-427c-98b7-e9f911b8621e
2025-07-21 02:23:31,093 - DEBUG - Requesting: http://10.0.0.254:8082/project/c9d9bc21-a939-42e8-81d9-eea3232e05fa
2025-07-21 02:23:31,170 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8ac7dc7d-058a-46e4-9e31-f5b36d391794
2025-07-21 02:23:31,185 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8ac7dc7d-058a-46e4-9e31-f5b36d391794
2025-07-21 02:23:31,197 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/60c6d485-0fd3-42be-aa63-381019b49cf3
2025-07-21 02:23:31,206 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/60c6d485-0fd3-42be-aa63-381019b49cf3
2025-07-21 02:23:31,214 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1951521a-8bbb-4767-87eb-7f863d5ea136
2025-07-21 02:23:31,223 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 02:23:31,223 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8ac7dc7d-058a-46e4-9e31-f5b36d391794
2025-07-21 02:23:31,237 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/60c6d485-0fd3-42be-aa63-381019b49cf3
2025-07-21 02:23:31,256 - INFO - Verified VN network id 10 for VN 8ac7dc7d-058a-46e4-9e31-f5b36d391794
2025-07-21 02:23:31,256 - INFO - Verifications in API Server for VN ctest-vn-63335576 passed
2025-07-21 02:23:31,256 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8ac7dc7d-058a-46e4-9e31-f5b36d391794
2025-07-21 02:23:31,267 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/60c6d485-0fd3-42be-aa63-381019b49cf3
2025-07-21 02:23:31,275 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/60c6d485-0fd3-42be-aa63-381019b49cf3
2025-07-21 02:23:31,284 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1951521a-8bbb-4767-87eb-7f863d5ea136
2025-07-21 02:23:31,299 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04810560:ctest-vn-63335576', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04810560', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10000203927121446628', 'uuid-lslong': '11399162282831845268'}, 'enable': 'true', 'created': '2025-07-21T02:23:28', 'last-modified': '2025-07-21T02:23:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.493632'}
2025-07-21 02:23:31,306 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 02:23:31,306 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63335576 passed
2025-07-21 02:23:31,307 - DEBUG - ====Verifying policy data for ctest-vn-63335576 in API_Server ======
2025-07-21 02:23:31,307 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 02:23:31,316 - DEBUG - Requesting: http://10.0.0.254:8082/domain/639b5bae-c70f-427c-98b7-e9f911b8621e
2025-07-21 02:23:31,332 - DEBUG - Requesting: http://10.0.0.254:8082/project/c9d9bc21-a939-42e8-81d9-eea3232e05fa
2025-07-21 02:23:31,410 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8ac7dc7d-058a-46e4-9e31-f5b36d391794
2025-07-21 02:23:31,422 - DEBUG - ==>Verifying data for policy with id: 987334f9-fd05-4ccb-9465-818ed875a443, fqn: ['default-domain', 'ctest-TestBasicPolicy-04810560', 'ctest-policy-allow-all-28173531']
2025-07-21 02:23:31,422 - INFO - VN ctest-vn-63335576 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 02:23:31,422 - DEBUG - Verifying the vn in opserver
2025-07-21 02:23:31,422 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04810560:ctest-vn-63335576 virtual network link through opserver 10.0.0.254
2025-07-21 02:23:31,422 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-21 02:23:31,435 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04810560:ctest-vn-63335576', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04810560:ctest-vn-63335576?flat'}
2025-07-21 02:23:31,435 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04810560:ctest-vn-63335576 is found in opserver
2025-07-21 02:23:31,447 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 02:23:31,453 - DEBUG - VRF ids for VN ctest-vn-63335576: {}
2025-07-21 02:23:31,516 - DEBUG - Services list from nova: [