2025-08-20 13:25:23,895 - INFO - Domain Default found not creating
2025-08-20 13:25:24,032 - INFO - Project ctest-TestBasicPolicy-34793556 not found, creating it
2025-08-20 13:25:24,480 - INFO - Created Project:ctest-TestBasicPolicy-34793556, ID : 47211edb-239f-49ff-a949-565a4a091172
2025-08-20 13:25:25,931 - INFO - ================================================================================
2025-08-20 13:25:25,931 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-20 13:25:25,931 - 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-08-20 13:25:26,190 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-08-20 13:25:26,190 - INFO - Initial checks done. Running the testcase now
2025-08-20 13:25:26,190 - INFO -
2025-08-20 13:25:26,765 - DEBUG - Response for create_network : {'network': {'id': '45319587-d5f9-4b84-b65b-a68dde68f1df', 'name': 'ctest-vn-49768828', 'tenant_id': '47211edb239f49ffa949565a4a091172', 'project_id': '47211edb239f49ffa949565a4a091172', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-vn-49768828'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 13:25:26,928 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aabe13c7-d38d-4e6d-9608-fcc8f4232abf', 'name': '', 'tenant_id': '47211edb239f49ffa949565a4a091172', 'network_id': '45319587-d5f9-4b84-b65b-a68dde68f1df', 'ip_version': 4, 'cidr': '44.230.201.128/26', 'allocation_pools': [{'start': '44.230.201.130', 'end': '44.230.201.190'}], 'gateway_ip': '44.230.201.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.230.201.130', 'tags': [], 'project_id': '47211edb239f49ffa949565a4a091172'}}
2025-08-20 13:25:26,946 - INFO - Created VN ctest-vn-49768828
2025-08-20 13:25:27,006 - DEBUG - VN ctest-vn-49768828 UUID is 45319587-d5f9-4b84-b65b-a68dde68f1df
2025-08-20 13:25:27,334 - DEBUG - Response for create_network : {'network': {'id': '73867314-358b-4d17-a64d-25eaea5fe44e', 'name': 'ctest-vn-13637869', 'tenant_id': '47211edb239f49ffa949565a4a091172', 'project_id': '47211edb239f49ffa949565a4a091172', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-vn-13637869'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 13:25:27,543 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa79852e-097f-4d49-af61-921cdc80eb91', 'name': '', 'tenant_id': '47211edb239f49ffa949565a4a091172', 'network_id': '73867314-358b-4d17-a64d-25eaea5fe44e', 'ip_version': 4, 'cidr': '173.231.197.128/26', 'allocation_pools': [{'start': '173.231.197.130', 'end': '173.231.197.190'}], 'gateway_ip': '173.231.197.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.231.197.130', 'tags': [], 'project_id': '47211edb239f49ffa949565a4a091172'}}
2025-08-20 13:25:27,560 - INFO - Created VN ctest-vn-13637869
2025-08-20 13:25:27,613 - DEBUG - VN ctest-vn-13637869 UUID is 73867314-358b-4d17-a64d-25eaea5fe44e
2025-08-20 13:25:27,761 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-49768828, 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-34793556:ctest-vn-13637869, 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-08-20 13:25:28,058 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45319587-d5f9-4b84-b65b-a68dde68f1df', 'name': 'ctest-vn-49768828', 'tenant_id': '47211edb239f49ffa949565a4a091172', 'project_id': '47211edb239f49ffa949565a4a091172', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aabe13c7-d38d-4e6d-9608-fcc8f4232abf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-vn-49768828'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-policy-allow-all-20073153']], 'subnet_ipam': [{'subnet_cidr': '44.230.201.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 13:25:28,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73867314-358b-4d17-a64d-25eaea5fe44e', 'name': 'ctest-vn-13637869', 'tenant_id': '47211edb239f49ffa949565a4a091172', 'project_id': '47211edb239f49ffa949565a4a091172', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa79852e-097f-4d49-af61-921cdc80eb91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-vn-13637869'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-policy-allow-all-20073153']], 'subnet_ipam': [{'subnet_cidr': '173.231.197.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 13:25:28,501 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 13:25:28,802 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 13:25:28,827 - DEBUG - Requesting: http://10.0.0.65:8082/domain/48138fab-26af-4851-aa93-5524da3e178e
2025-08-20 13:25:28,841 - DEBUG - Requesting: http://10.0.0.65:8082/project/47211edb-239f-49ff-a949-565a4a091172
2025-08-20 13:25:28,913 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/45319587-d5f9-4b84-b65b-a68dde68f1df
2025-08-20 13:25:28,926 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/45319587-d5f9-4b84-b65b-a68dde68f1df
2025-08-20 13:25:28,935 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1378f276-656e-49c7-80fe-e519faaab6cf
2025-08-20 13:25:28,943 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1378f276-656e-49c7-80fe-e519faaab6cf
2025-08-20 13:25:28,950 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/ded43bd5-8504-4b8a-b1e9-2d9f6c071bea
2025-08-20 13:25:28,956 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 13:25:28,956 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/45319587-d5f9-4b84-b65b-a68dde68f1df
2025-08-20 13:25:28,965 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1378f276-656e-49c7-80fe-e519faaab6cf
2025-08-20 13:25:28,980 - INFO - Verified VN network id 12 for VN 45319587-d5f9-4b84-b65b-a68dde68f1df
2025-08-20 13:25:28,980 - INFO - Verifications in API Server for VN ctest-vn-49768828 passed
2025-08-20 13:25:28,980 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/45319587-d5f9-4b84-b65b-a68dde68f1df
2025-08-20 13:25:28,990 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1378f276-656e-49c7-80fe-e519faaab6cf
2025-08-20 13:25:28,997 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1378f276-656e-49c7-80fe-e519faaab6cf
2025-08-20 13:25:29,004 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/ded43bd5-8504-4b8a-b1e9-2d9f6c071bea
2025-08-20 13:25:29,017 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-49768828', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34793556', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4985930673118858116', 'uuid-lslong': '13140279466035573215'}, 'enable': 'true', 'created': '2025-08-20T13:25:26', 'last-modified': '2025-08-20T13:25:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.991005'}
2025-08-20 13:25:29,023 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 13:25:29,024 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49768828 passed
2025-08-20 13:25:29,024 - DEBUG - ====Verifying policy data for ctest-vn-49768828 in API_Server ======
2025-08-20 13:25:29,024 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 13:25:29,030 - DEBUG - Requesting: http://10.0.0.65:8082/domain/48138fab-26af-4851-aa93-5524da3e178e
2025-08-20 13:25:29,043 - DEBUG - Requesting: http://10.0.0.65:8082/project/47211edb-239f-49ff-a949-565a4a091172
2025-08-20 13:25:29,115 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/45319587-d5f9-4b84-b65b-a68dde68f1df
2025-08-20 13:25:29,125 - DEBUG - ==>Verifying data for policy with id: 2282c3af-7168-4137-84f3-9aaf59e67d60, fqn: ['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-policy-allow-all-20073153']
2025-08-20 13:25:29,125 - INFO - VN ctest-vn-49768828 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 13:25:29,125 - DEBUG - Verifying the vn in opserver
2025-08-20 13:25:29,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-49768828 virtual network link through opserver 10.0.0.65
2025-08-20 13:25:29,125 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-08-20 13:25:29,413 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-08-20 13:25:29,462 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-49768828', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-49768828?flat'}
2025-08-20 13:25:29,462 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-49768828 is found in opserver
2025-08-20 13:25:29,472 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 13:25:29,477 - DEBUG - VRF ids for VN ctest-vn-49768828: {}
2025-08-20 13:25:29,477 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 13:25:29,483 - DEBUG - Requesting: http://10.0.0.65:8082/domain/48138fab-26af-4851-aa93-5524da3e178e
2025-08-20 13:25:29,494 - DEBUG - Requesting: http://10.0.0.65:8082/project/47211edb-239f-49ff-a949-565a4a091172
2025-08-20 13:25:29,565 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/73867314-358b-4d17-a64d-25eaea5fe44e
2025-08-20 13:25:29,576 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/73867314-358b-4d17-a64d-25eaea5fe44e
2025-08-20 13:25:29,585 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/270f79c7-0273-4e52-a28d-67d1528050e9
2025-08-20 13:25:29,592 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/270f79c7-0273-4e52-a28d-67d1528050e9
2025-08-20 13:25:29,598 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/c800dfe5-6d2d-43bb-a8e6-28e927aa8e31
2025-08-20 13:25:29,604 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 13:25:29,604 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/73867314-358b-4d17-a64d-25eaea5fe44e
2025-08-20 13:25:29,613 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/270f79c7-0273-4e52-a28d-67d1528050e9
2025-08-20 13:25:29,626 - INFO - Verified VN network id 13 for VN 73867314-358b-4d17-a64d-25eaea5fe44e
2025-08-20 13:25:29,626 - INFO - Verifications in API Server for VN ctest-vn-13637869 passed
2025-08-20 13:25:29,626 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/73867314-358b-4d17-a64d-25eaea5fe44e
2025-08-20 13:25:29,635 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/270f79c7-0273-4e52-a28d-67d1528050e9
2025-08-20 13:25:29,642 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/270f79c7-0273-4e52-a28d-67d1528050e9
2025-08-20 13:25:29,649 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/c800dfe5-6d2d-43bb-a8e6-28e927aa8e31
2025-08-20 13:25:29,663 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-13637869', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34793556', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8324467491875802391', 'uuid-lslong': '11983275874387485774'}, 'enable': 'true', 'created': '2025-08-20T13:25:27', 'last-modified': '2025-08-20T13:25:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.388943'}
2025-08-20 13:25:29,668 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 13:25:29,668 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13637869 passed
2025-08-20 13:25:29,669 - DEBUG - ====Verifying policy data for ctest-vn-13637869 in API_Server ======
2025-08-20 13:25:29,669 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 13:25:29,674 - DEBUG - Requesting: http://10.0.0.65:8082/domain/48138fab-26af-4851-aa93-5524da3e178e
2025-08-20 13:25:29,685 - DEBUG - Requesting: http://10.0.0.65:8082/project/47211edb-239f-49ff-a949-565a4a091172
2025-08-20 13:25:29,752 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/73867314-358b-4d17-a64d-25eaea5fe44e
2025-08-20 13:25:29,761 - DEBUG - ==>Verifying data for policy with id: 2282c3af-7168-4137-84f3-9aaf59e67d60, fqn: ['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-policy-allow-all-20073153']
2025-08-20 13:25:29,761 - INFO - VN ctest-vn-13637869 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 13:25:29,761 - DEBUG - Verifying the vn in opserver
2025-08-20 13:25:29,761 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-13637869 virtual network link through opserver 10.0.0.65
2025-08-20 13:25:29,761 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-08-20 13:25:29,771 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-13637869', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-13637869?flat'}
2025-08-20 13:25:29,771 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-13637869 is found in opserver
2025-08-20 13:25:29,781 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 13:25:29,786 - DEBUG - VRF ids for VN ctest-vn-13637869: {}
2025-08-20 13:25:29,834 - DEBUG - Services list from nova: [