2025-03-19 19:12:23,166 - INFO - Domain Default found not creating
2025-03-19 19:12:23,420 - INFO - Project ctest-TestBasicPolicy-41465882 not found, creating it
2025-03-19 19:12:23,939 - INFO - Created Project:ctest-TestBasicPolicy-41465882, ID : 1bb9dba3-fbd4-4b02-8e5e-a72396556aed
2025-03-19 19:12:25,556 - INFO - ================================================================================
2025-03-19 19:12:25,556 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-19 19:12:25,556 - 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-19 19:12:25,833 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.12': '0'}} with
2025-03-19 19:12:25,833 - INFO - Initial checks done. Running the testcase now
2025-03-19 19:12:25,833 - INFO -
2025-03-19 19:12:26,507 - DEBUG - Response for create_network : {'network': {'id': 'c1ce5159-6198-4445-b392-6724322b3462', 'name': 'ctest-vn-59224046', 'tenant_id': '1bb9dba3fbd44b028e5ea72396556aed', 'project_id': '1bb9dba3fbd44b028e5ea72396556aed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41465882', 'ctest-vn-59224046'], 'port_security_enabled': True, 'description': ''}}
2025-03-19 19:12:26,690 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4003259-b844-4caa-88f5-c799bd90534a', 'name': '', 'tenant_id': '1bb9dba3fbd44b028e5ea72396556aed', 'network_id': 'c1ce5159-6198-4445-b392-6724322b3462', 'ip_version': 4, 'cidr': '207.231.248.128/26', 'allocation_pools': [{'start': '207.231.248.130', 'end': '207.231.248.190'}], 'gateway_ip': '207.231.248.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.231.248.130', 'tags': [], 'project_id': '1bb9dba3fbd44b028e5ea72396556aed'}}
2025-03-19 19:12:26,709 - INFO - Created VN ctest-vn-59224046
2025-03-19 19:12:26,763 - DEBUG - VN ctest-vn-59224046 UUID is c1ce5159-6198-4445-b392-6724322b3462
2025-03-19 19:12:27,089 - DEBUG - Response for create_network : {'network': {'id': '60582559-ec30-4d21-86c9-33296f893100', 'name': 'ctest-vn-06909061', 'tenant_id': '1bb9dba3fbd44b028e5ea72396556aed', 'project_id': '1bb9dba3fbd44b028e5ea72396556aed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41465882', 'ctest-vn-06909061'], 'port_security_enabled': True, 'description': ''}}
2025-03-19 19:12:27,285 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c90552f-fa1f-496a-b88d-0e6c1eae8438', 'name': '', 'tenant_id': '1bb9dba3fbd44b028e5ea72396556aed', 'network_id': '60582559-ec30-4d21-86c9-33296f893100', 'ip_version': 4, 'cidr': '136.236.171.192/26', 'allocation_pools': [{'start': '136.236.171.194', 'end': '136.236.171.254'}], 'gateway_ip': '136.236.171.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.236.171.194', 'tags': [], 'project_id': '1bb9dba3fbd44b028e5ea72396556aed'}}
2025-03-19 19:12:27,304 - INFO - Created VN ctest-vn-06909061
2025-03-19 19:12:27,359 - DEBUG - VN ctest-vn-06909061 UUID is 60582559-ec30-4d21-86c9-33296f893100
2025-03-19 19:12:27,480 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41465882:ctest-vn-59224046, 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-41465882:ctest-vn-06909061, 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-19 19:12:27,799 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c1ce5159-6198-4445-b392-6724322b3462', 'name': 'ctest-vn-59224046', 'tenant_id': '1bb9dba3fbd44b028e5ea72396556aed', 'project_id': '1bb9dba3fbd44b028e5ea72396556aed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c4003259-b844-4caa-88f5-c799bd90534a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41465882', 'ctest-vn-59224046'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41465882', 'ctest-policy-allow-all-20715124']], 'subnet_ipam': [{'subnet_cidr': '207.231.248.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-19 19:12:28,052 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60582559-ec30-4d21-86c9-33296f893100', 'name': 'ctest-vn-06909061', 'tenant_id': '1bb9dba3fbd44b028e5ea72396556aed', 'project_id': '1bb9dba3fbd44b028e5ea72396556aed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c90552f-fa1f-496a-b88d-0e6c1eae8438'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41465882', 'ctest-vn-06909061'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41465882', 'ctest-policy-allow-all-20715124']], 'subnet_ipam': [{'subnet_cidr': '136.236.171.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-19 19:12:28,227 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-03-19 19:12:28,522 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-03-19 19:12:28,557 - DEBUG - Requesting: http://10.0.0.48:8082/domain/058e9118-409c-49e7-9d84-c2680ab5e5a1
2025-03-19 19:12:28,570 - DEBUG - Requesting: http://10.0.0.48:8082/project/1bb9dba3-fbd4-4b02-8e5e-a72396556aed
2025-03-19 19:12:28,650 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c1ce5159-6198-4445-b392-6724322b3462
2025-03-19 19:12:28,664 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c1ce5159-6198-4445-b392-6724322b3462
2025-03-19 19:12:28,675 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2b437296-8697-4f12-b086-b4757866c383
2025-03-19 19:12:28,684 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2b437296-8697-4f12-b086-b4757866c383
2025-03-19 19:12:28,693 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/eef10f4f-6ca9-4f7b-b6b0-962c325f2574
2025-03-19 19:12:28,701 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-19 19:12:28,701 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c1ce5159-6198-4445-b392-6724322b3462
2025-03-19 19:12:28,713 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2b437296-8697-4f12-b086-b4757866c383
2025-03-19 19:12:28,729 - INFO - Verified VN network id 8 for VN c1ce5159-6198-4445-b392-6724322b3462
2025-03-19 19:12:28,729 - INFO - Verifications in API Server for VN ctest-vn-59224046 passed
2025-03-19 19:12:28,729 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c1ce5159-6198-4445-b392-6724322b3462
2025-03-19 19:12:28,741 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2b437296-8697-4f12-b086-b4757866c383
2025-03-19 19:12:28,749 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2b437296-8697-4f12-b086-b4757866c383
2025-03-19 19:12:28,758 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/eef10f4f-6ca9-4f7b-b6b0-962c325f2574
2025-03-19 19:12:28,773 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41465882:ctest-vn-59224046', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41465882', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13965188938853794885', 'uuid-lslong': '12939518084547032162'}, 'enable': 'true', 'created': '2025-03-19T19:12:26', 'last-modified': '2025-03-19T19:12:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001292'}
2025-03-19 19:12:28,779 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-19 19:12:28,779 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59224046 passed
2025-03-19 19:12:28,780 - DEBUG - ====Verifying policy data for ctest-vn-59224046 in API_Server ======
2025-03-19 19:12:28,780 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-03-19 19:12:28,786 - DEBUG - Requesting: http://10.0.0.48:8082/domain/058e9118-409c-49e7-9d84-c2680ab5e5a1
2025-03-19 19:12:28,798 - DEBUG - Requesting: http://10.0.0.48:8082/project/1bb9dba3-fbd4-4b02-8e5e-a72396556aed
2025-03-19 19:12:28,873 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c1ce5159-6198-4445-b392-6724322b3462
2025-03-19 19:12:28,888 - DEBUG - ==>Verifying data for policy with id: 7f1fcf82-7787-4f4f-970e-43d209025ea2, fqn: ['default-domain', 'ctest-TestBasicPolicy-41465882', 'ctest-policy-allow-all-20715124']
2025-03-19 19:12:28,889 - INFO - VN ctest-vn-59224046 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-19 19:12:28,889 - DEBUG - Verifying the vn in opserver
2025-03-19 19:12:28,889 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41465882:ctest-vn-59224046 virtual network link through opserver 10.0.0.48
2025-03-19 19:12:28,889 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-03-19 19:12:29,196 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-03-19 19:12:29,264 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41465882:ctest-vn-59224046', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41465882:ctest-vn-59224046?flat'}
2025-03-19 19:12:29,264 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41465882:ctest-vn-59224046 is found in opserver
2025-03-19 19:12:29,279 - DEBUG - Do not have enough data to verify VN in agent
2025-03-19 19:12:29,286 - DEBUG - VRF ids for VN ctest-vn-59224046: {}
2025-03-19 19:12:29,287 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-03-19 19:12:29,297 - DEBUG - Requesting: http://10.0.0.48:8082/domain/058e9118-409c-49e7-9d84-c2680ab5e5a1
2025-03-19 19:12:29,317 - DEBUG - Requesting: http://10.0.0.48:8082/project/1bb9dba3-fbd4-4b02-8e5e-a72396556aed
2025-03-19 19:12:29,401 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/60582559-ec30-4d21-86c9-33296f893100
2025-03-19 19:12:29,412 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/60582559-ec30-4d21-86c9-33296f893100
2025-03-19 19:12:29,421 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a2f3c189-0077-4978-bf7a-cb096be1393c
2025-03-19 19:12:29,428 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a2f3c189-0077-4978-bf7a-cb096be1393c
2025-03-19 19:12:29,436 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/96eba1d6-901c-4769-855a-ec56c107a532
2025-03-19 19:12:29,443 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-19 19:12:29,443 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/60582559-ec30-4d21-86c9-33296f893100
2025-03-19 19:12:29,452 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a2f3c189-0077-4978-bf7a-cb096be1393c
2025-03-19 19:12:29,466 - INFO - Verified VN network id 9 for VN 60582559-ec30-4d21-86c9-33296f893100
2025-03-19 19:12:29,466 - INFO - Verifications in API Server for VN ctest-vn-06909061 passed
2025-03-19 19:12:29,466 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/60582559-ec30-4d21-86c9-33296f893100
2025-03-19 19:12:29,476 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a2f3c189-0077-4978-bf7a-cb096be1393c
2025-03-19 19:12:29,484 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a2f3c189-0077-4978-bf7a-cb096be1393c
2025-03-19 19:12:29,491 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/96eba1d6-901c-4769-855a-ec56c107a532
2025-03-19 19:12:29,503 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41465882:ctest-vn-06909061', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41465882', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6942339893736525089', 'uuid-lslong': '9712350324459122944'}, 'enable': 'true', 'created': '2025-03-19T19:12:27', 'last-modified': '2025-03-19T19:12:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.479364'}
2025-03-19 19:12:29,509 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-19 19:12:29,510 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06909061 passed
2025-03-19 19:12:29,510 - DEBUG - ====Verifying policy data for ctest-vn-06909061 in API_Server ======
2025-03-19 19:12:29,510 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-03-19 19:12:29,515 - DEBUG - Requesting: http://10.0.0.48:8082/domain/058e9118-409c-49e7-9d84-c2680ab5e5a1
2025-03-19 19:12:29,527 - DEBUG - Requesting: http://10.0.0.48:8082/project/1bb9dba3-fbd4-4b02-8e5e-a72396556aed
2025-03-19 19:12:29,601 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/60582559-ec30-4d21-86c9-33296f893100
2025-03-19 19:12:29,612 - DEBUG - ==>Verifying data for policy with id: 7f1fcf82-7787-4f4f-970e-43d209025ea2, fqn: ['default-domain', 'ctest-TestBasicPolicy-41465882', 'ctest-policy-allow-all-20715124']
2025-03-19 19:12:29,612 - INFO - VN ctest-vn-06909061 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-19 19:12:29,612 - DEBUG - Verifying the vn in opserver
2025-03-19 19:12:29,612 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41465882:ctest-vn-06909061 virtual network link through opserver 10.0.0.48
2025-03-19 19:12:29,612 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-03-19 19:12:29,622 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41465882:ctest-vn-06909061', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41465882:ctest-vn-06909061?flat'}
2025-03-19 19:12:29,622 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41465882:ctest-vn-06909061 is found in opserver
2025-03-19 19:12:29,633 - DEBUG - Do not have enough data to verify VN in agent
2025-03-19 19:12:29,638 - DEBUG - VRF ids for VN ctest-vn-06909061: {}
2025-03-19 19:12:29,697 - DEBUG - Services list from nova: [