2025-04-14 12:41:45,090 - INFO - Domain Default found not creating
2025-04-14 12:41:45,254 - INFO - Project ctest-TestBasicPolicy-97932100 not found, creating it
2025-04-14 12:41:45,750 - INFO - Created Project:ctest-TestBasicPolicy-97932100, ID : f23487aa-ea1c-48c7-b137-a484b646d6c3
2025-04-14 12:41:47,251 - INFO - ================================================================================
2025-04-14 12:41:47,251 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-14 12:41:47,251 - 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-04-14 12:41:47,517 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-04-14 12:41:47,517 - INFO - Initial checks done. Running the testcase now
2025-04-14 12:41:47,517 - INFO -
2025-04-14 12:41:48,112 - DEBUG - Response for create_network : {'network': {'id': '6f1b1d7d-1961-4f84-ad3b-363b91d9fb34', 'name': 'ctest-vn-40048293', 'tenant_id': 'f23487aaea1c48c7b137a484b646d6c3', 'project_id': 'f23487aaea1c48c7b137a484b646d6c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97932100', 'ctest-vn-40048293'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 12:41:48,308 - DEBUG - Response for create_subnet : {'subnet': {'id': '97b644e4-8000-4048-bbaf-3eaa114ae2a8', 'name': '', 'tenant_id': 'f23487aaea1c48c7b137a484b646d6c3', 'network_id': '6f1b1d7d-1961-4f84-ad3b-363b91d9fb34', 'ip_version': 4, 'cidr': '190.225.135.128/26', 'allocation_pools': [{'start': '190.225.135.130', 'end': '190.225.135.190'}], 'gateway_ip': '190.225.135.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.225.135.130', 'tags': [], 'project_id': 'f23487aaea1c48c7b137a484b646d6c3'}}
2025-04-14 12:41:48,328 - INFO - Created VN ctest-vn-40048293
2025-04-14 12:41:48,382 - DEBUG - VN ctest-vn-40048293 UUID is 6f1b1d7d-1961-4f84-ad3b-363b91d9fb34
2025-04-14 12:41:48,793 - DEBUG - Response for create_network : {'network': {'id': 'a66657c7-02d9-4bae-940d-1f82109fa206', 'name': 'ctest-vn-82891842', 'tenant_id': 'f23487aaea1c48c7b137a484b646d6c3', 'project_id': 'f23487aaea1c48c7b137a484b646d6c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97932100', 'ctest-vn-82891842'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 12:41:49,006 - DEBUG - Response for create_subnet : {'subnet': {'id': '3542b968-84dd-41fa-8803-140d442bdc21', 'name': '', 'tenant_id': 'f23487aaea1c48c7b137a484b646d6c3', 'network_id': 'a66657c7-02d9-4bae-940d-1f82109fa206', 'ip_version': 4, 'cidr': '134.11.207.128/26', 'allocation_pools': [{'start': '134.11.207.130', 'end': '134.11.207.190'}], 'gateway_ip': '134.11.207.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.11.207.130', 'tags': [], 'project_id': 'f23487aaea1c48c7b137a484b646d6c3'}}
2025-04-14 12:41:49,030 - INFO - Created VN ctest-vn-82891842
2025-04-14 12:41:49,086 - DEBUG - VN ctest-vn-82891842 UUID is a66657c7-02d9-4bae-940d-1f82109fa206
2025-04-14 12:41:49,216 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97932100:ctest-vn-40048293, 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-97932100:ctest-vn-82891842, 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-04-14 12:41:49,542 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6f1b1d7d-1961-4f84-ad3b-363b91d9fb34', 'name': 'ctest-vn-40048293', 'tenant_id': 'f23487aaea1c48c7b137a484b646d6c3', 'project_id': 'f23487aaea1c48c7b137a484b646d6c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['97b644e4-8000-4048-bbaf-3eaa114ae2a8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97932100', 'ctest-vn-40048293'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97932100', 'ctest-policy-allow-all-82467621']], 'subnet_ipam': [{'subnet_cidr': '190.225.135.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 12:41:49,802 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a66657c7-02d9-4bae-940d-1f82109fa206', 'name': 'ctest-vn-82891842', 'tenant_id': 'f23487aaea1c48c7b137a484b646d6c3', 'project_id': 'f23487aaea1c48c7b137a484b646d6c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3542b968-84dd-41fa-8803-140d442bdc21'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97932100', 'ctest-vn-82891842'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97932100', 'ctest-policy-allow-all-82467621']], 'subnet_ipam': [{'subnet_cidr': '134.11.207.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 12:41:49,986 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-14 12:41:50,295 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-14 12:41:50,325 - DEBUG - Requesting: http://10.0.0.48:8082/domain/159f0099-3da5-4f56-af64-0edeb99619ce
2025-04-14 12:41:50,341 - DEBUG - Requesting: http://10.0.0.48:8082/project/f23487aa-ea1c-48c7-b137-a484b646d6c3
2025-04-14 12:41:50,419 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6f1b1d7d-1961-4f84-ad3b-363b91d9fb34
2025-04-14 12:41:50,431 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6f1b1d7d-1961-4f84-ad3b-363b91d9fb34
2025-04-14 12:41:50,443 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1b520591-25d7-4126-9308-2754f68cc7c6
2025-04-14 12:41:50,452 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1b520591-25d7-4126-9308-2754f68cc7c6
2025-04-14 12:41:50,460 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/4c6437b0-9e40-441a-8310-3d02492c05f1
2025-04-14 12:41:50,468 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 12:41:50,468 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6f1b1d7d-1961-4f84-ad3b-363b91d9fb34
2025-04-14 12:41:50,480 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1b520591-25d7-4126-9308-2754f68cc7c6
2025-04-14 12:41:50,504 - INFO - Verified VN network id 8 for VN 6f1b1d7d-1961-4f84-ad3b-363b91d9fb34
2025-04-14 12:41:50,504 - INFO - Verifications in API Server for VN ctest-vn-40048293 passed
2025-04-14 12:41:50,504 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6f1b1d7d-1961-4f84-ad3b-363b91d9fb34
2025-04-14 12:41:50,524 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1b520591-25d7-4126-9308-2754f68cc7c6
2025-04-14 12:41:50,534 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1b520591-25d7-4126-9308-2754f68cc7c6
2025-04-14 12:41:50,543 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/4c6437b0-9e40-441a-8310-3d02492c05f1
2025-04-14 12:41:50,558 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97932100:ctest-vn-40048293', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97932100', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8006025185715113860', 'uuid-lslong': '12482630421665413940'}, 'enable': 'true', 'created': '2025-04-14T12:41:48', 'last-modified': '2025-04-14T12:41:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.037304'}
2025-04-14 12:41:50,565 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 12:41:50,565 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40048293 passed
2025-04-14 12:41:50,565 - DEBUG - ====Verifying policy data for ctest-vn-40048293 in API_Server ======
2025-04-14 12:41:50,565 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-14 12:41:50,573 - DEBUG - Requesting: http://10.0.0.48:8082/domain/159f0099-3da5-4f56-af64-0edeb99619ce
2025-04-14 12:41:50,591 - DEBUG - Requesting: http://10.0.0.48:8082/project/f23487aa-ea1c-48c7-b137-a484b646d6c3
2025-04-14 12:41:50,688 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6f1b1d7d-1961-4f84-ad3b-363b91d9fb34
2025-04-14 12:41:50,703 - DEBUG - ==>Verifying data for policy with id: 23fa99a8-4e1a-4f56-a924-13d426a32ff3, fqn: ['default-domain', 'ctest-TestBasicPolicy-97932100', 'ctest-policy-allow-all-82467621']
2025-04-14 12:41:50,704 - INFO - VN ctest-vn-40048293 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 12:41:50,704 - DEBUG - Verifying the vn in opserver
2025-04-14 12:41:50,704 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97932100:ctest-vn-40048293 virtual network link through opserver 10.0.0.48
2025-04-14 12:41:50,704 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-04-14 12:41:50,998 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-04-14 12:41:51,060 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97932100:ctest-vn-40048293', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97932100:ctest-vn-40048293?flat'}
2025-04-14 12:41:51,060 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97932100:ctest-vn-40048293 is found in opserver
2025-04-14 12:41:51,075 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 12:41:51,083 - DEBUG - VRF ids for VN ctest-vn-40048293: {}
2025-04-14 12:41:51,083 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-14 12:41:51,092 - DEBUG - Requesting: http://10.0.0.48:8082/domain/159f0099-3da5-4f56-af64-0edeb99619ce
2025-04-14 12:41:51,110 - DEBUG - Requesting: http://10.0.0.48:8082/project/f23487aa-ea1c-48c7-b137-a484b646d6c3
2025-04-14 12:41:51,207 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a66657c7-02d9-4bae-940d-1f82109fa206
2025-04-14 12:41:51,227 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a66657c7-02d9-4bae-940d-1f82109fa206
2025-04-14 12:41:51,244 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c25a1ccd-5880-45f2-bc8b-d401ae7aeac8
2025-04-14 12:41:51,256 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c25a1ccd-5880-45f2-bc8b-d401ae7aeac8
2025-04-14 12:41:51,268 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/21094d3d-9735-4285-82e5-00cc528c3a4f
2025-04-14 12:41:51,277 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 12:41:51,277 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a66657c7-02d9-4bae-940d-1f82109fa206
2025-04-14 12:41:51,292 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c25a1ccd-5880-45f2-bc8b-d401ae7aeac8
2025-04-14 12:41:51,319 - INFO - Verified VN network id 9 for VN a66657c7-02d9-4bae-940d-1f82109fa206
2025-04-14 12:41:51,319 - INFO - Verifications in API Server for VN ctest-vn-82891842 passed
2025-04-14 12:41:51,319 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a66657c7-02d9-4bae-940d-1f82109fa206
2025-04-14 12:41:51,336 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c25a1ccd-5880-45f2-bc8b-d401ae7aeac8
2025-04-14 12:41:51,349 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c25a1ccd-5880-45f2-bc8b-d401ae7aeac8
2025-04-14 12:41:51,362 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/21094d3d-9735-4285-82e5-00cc528c3a4f
2025-04-14 12:41:51,378 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97932100:ctest-vn-82891842', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97932100', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11990367570178427822', 'uuid-lslong': '10668217735795679750'}, 'enable': 'true', 'created': '2025-04-14T12:41:48', 'last-modified': '2025-04-14T12:41:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.602401'}
2025-04-14 12:41:51,386 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 12:41:51,386 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82891842 passed
2025-04-14 12:41:51,387 - DEBUG - ====Verifying policy data for ctest-vn-82891842 in API_Server ======
2025-04-14 12:41:51,387 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-14 12:41:51,394 - DEBUG - Requesting: http://10.0.0.48:8082/domain/159f0099-3da5-4f56-af64-0edeb99619ce
2025-04-14 12:41:51,411 - DEBUG - Requesting: http://10.0.0.48:8082/project/f23487aa-ea1c-48c7-b137-a484b646d6c3
2025-04-14 12:41:51,495 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a66657c7-02d9-4bae-940d-1f82109fa206
2025-04-14 12:41:51,507 - DEBUG - ==>Verifying data for policy with id: 23fa99a8-4e1a-4f56-a924-13d426a32ff3, fqn: ['default-domain', 'ctest-TestBasicPolicy-97932100', 'ctest-policy-allow-all-82467621']
2025-04-14 12:41:51,507 - INFO - VN ctest-vn-82891842 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 12:41:51,507 - DEBUG - Verifying the vn in opserver
2025-04-14 12:41:51,507 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97932100:ctest-vn-82891842 virtual network link through opserver 10.0.0.48
2025-04-14 12:41:51,507 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-04-14 12:41:51,519 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97932100:ctest-vn-82891842', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97932100:ctest-vn-82891842?flat'}
2025-04-14 12:41:51,519 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97932100:ctest-vn-82891842 is found in opserver
2025-04-14 12:41:51,534 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 12:41:51,541 - DEBUG - VRF ids for VN ctest-vn-82891842: {}
2025-04-14 12:41:51,602 - DEBUG - Services list from nova: [