2025-03-24 02:17:31,298 - INFO - Domain Default found not creating
2025-03-24 02:17:31,429 - INFO - Project ctest-TestBasicPolicy-42935498 not found, creating it
2025-03-24 02:17:31,867 - INFO - Created Project:ctest-TestBasicPolicy-42935498, ID : cb6be8dd-5a98-4bbe-b240-631f6d7cf858
2025-03-24 02:17:33,255 - INFO - ================================================================================
2025-03-24 02:17:33,255 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-24 02:17:33,255 - 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-24 02:17:33,511 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.6': '0'}} with
2025-03-24 02:17:33,511 - INFO - Initial checks done. Running the testcase now
2025-03-24 02:17:33,511 - INFO -
2025-03-24 02:17:34,049 - DEBUG - Response for create_network : {'network': {'id': 'c0032af3-fe7f-403b-81a6-434bd95b2330', 'name': 'ctest-vn-64903796', 'tenant_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'project_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-vn-64903796'], 'port_security_enabled': True, 'description': ''}}
2025-03-24 02:17:34,253 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb64b455-922e-4815-9bed-2d66e62fa43a', 'name': '', 'tenant_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'network_id': 'c0032af3-fe7f-403b-81a6-434bd95b2330', 'ip_version': 4, 'cidr': '111.253.234.128/26', 'allocation_pools': [{'start': '111.253.234.130', 'end': '111.253.234.190'}], 'gateway_ip': '111.253.234.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.253.234.130', 'tags': [], 'project_id': 'cb6be8dd5a984bbeb240631f6d7cf858'}}
2025-03-24 02:17:34,272 - INFO - Created VN ctest-vn-64903796
2025-03-24 02:17:34,325 - DEBUG - VN ctest-vn-64903796 UUID is c0032af3-fe7f-403b-81a6-434bd95b2330
2025-03-24 02:17:34,647 - DEBUG - Response for create_network : {'network': {'id': 'f1aa6038-10d2-4af1-9137-04773399a1bf', 'name': 'ctest-vn-52880648', 'tenant_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'project_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-vn-52880648'], 'port_security_enabled': True, 'description': ''}}
2025-03-24 02:17:34,797 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d42aff8-30eb-4af9-950c-c859c8c5a9ef', 'name': '', 'tenant_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'network_id': 'f1aa6038-10d2-4af1-9137-04773399a1bf', 'ip_version': 4, 'cidr': '210.244.222.192/26', 'allocation_pools': [{'start': '210.244.222.194', 'end': '210.244.222.254'}], 'gateway_ip': '210.244.222.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.244.222.194', 'tags': [], 'project_id': 'cb6be8dd5a984bbeb240631f6d7cf858'}}
2025-03-24 02:17:34,814 - INFO - Created VN ctest-vn-52880648
2025-03-24 02:17:34,865 - DEBUG - VN ctest-vn-52880648 UUID is f1aa6038-10d2-4af1-9137-04773399a1bf
2025-03-24 02:17:35,013 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-64903796, 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-42935498:ctest-vn-52880648, 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-24 02:17:35,299 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c0032af3-fe7f-403b-81a6-434bd95b2330', 'name': 'ctest-vn-64903796', 'tenant_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'project_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb64b455-922e-4815-9bed-2d66e62fa43a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-vn-64903796'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-policy-allow-all-20648036']], 'subnet_ipam': [{'subnet_cidr': '111.253.234.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-24 02:17:35,527 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1aa6038-10d2-4af1-9137-04773399a1bf', 'name': 'ctest-vn-52880648', 'tenant_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'project_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d42aff8-30eb-4af9-950c-c859c8c5a9ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-vn-52880648'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-policy-allow-all-20648036']], 'subnet_ipam': [{'subnet_cidr': '210.244.222.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-24 02:17:35,681 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-24 02:17:35,979 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-24 02:17:36,008 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6fd2423e-7d6c-4b9d-9d59-98ad1ee790e9
2025-03-24 02:17:36,021 - DEBUG - Requesting: http://10.0.0.34:8082/project/cb6be8dd-5a98-4bbe-b240-631f6d7cf858
2025-03-24 02:17:36,097 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c0032af3-fe7f-403b-81a6-434bd95b2330
2025-03-24 02:17:36,109 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c0032af3-fe7f-403b-81a6-434bd95b2330
2025-03-24 02:17:36,117 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/9519f284-8a69-47aa-ad6d-f4482a535383
2025-03-24 02:17:36,124 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/9519f284-8a69-47aa-ad6d-f4482a535383
2025-03-24 02:17:36,131 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/7801e1e1-8f1a-425b-9819-b7d8573ba6fb
2025-03-24 02:17:36,137 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-24 02:17:36,137 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c0032af3-fe7f-403b-81a6-434bd95b2330
2025-03-24 02:17:36,146 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/9519f284-8a69-47aa-ad6d-f4482a535383
2025-03-24 02:17:36,159 - INFO - Verified VN network id 8 for VN c0032af3-fe7f-403b-81a6-434bd95b2330
2025-03-24 02:17:36,159 - INFO - Verifications in API Server for VN ctest-vn-64903796 passed
2025-03-24 02:17:36,160 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c0032af3-fe7f-403b-81a6-434bd95b2330
2025-03-24 02:17:36,168 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/9519f284-8a69-47aa-ad6d-f4482a535383
2025-03-24 02:17:36,176 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/9519f284-8a69-47aa-ad6d-f4482a535383
2025-03-24 02:17:36,182 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/7801e1e1-8f1a-425b-9819-b7d8573ba6fb
2025-03-24 02:17:36,195 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-64903796', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42935498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13835949707647467579', 'uuid-lslong': '9342228470074909488'}, 'enable': 'true', 'created': '2025-03-24T02:17:34', 'last-modified': '2025-03-24T02:17:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913770'}
2025-03-24 02:17:36,201 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-24 02:17:36,201 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64903796 passed
2025-03-24 02:17:36,201 - DEBUG - ====Verifying policy data for ctest-vn-64903796 in API_Server ======
2025-03-24 02:17:36,201 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-24 02:17:36,206 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6fd2423e-7d6c-4b9d-9d59-98ad1ee790e9
2025-03-24 02:17:36,216 - DEBUG - Requesting: http://10.0.0.34:8082/project/cb6be8dd-5a98-4bbe-b240-631f6d7cf858
2025-03-24 02:17:36,292 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c0032af3-fe7f-403b-81a6-434bd95b2330
2025-03-24 02:17:36,302 - DEBUG - ==>Verifying data for policy with id: 25c1a1a8-d500-429f-ac4a-a3f67f248304, fqn: ['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-policy-allow-all-20648036']
2025-03-24 02:17:36,302 - INFO - VN ctest-vn-64903796 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-24 02:17:36,302 - DEBUG - Verifying the vn in opserver
2025-03-24 02:17:36,302 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-64903796 virtual network link through opserver 10.0.0.34
2025-03-24 02:17:36,302 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-03-24 02:17:36,602 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-03-24 02:17:36,655 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-64903796', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-64903796?flat'}
2025-03-24 02:17:36,656 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-64903796 is found in opserver
2025-03-24 02:17:36,666 - DEBUG - Do not have enough data to verify VN in agent
2025-03-24 02:17:36,670 - DEBUG - VRF ids for VN ctest-vn-64903796: {}
2025-03-24 02:17:36,670 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-24 02:17:36,676 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6fd2423e-7d6c-4b9d-9d59-98ad1ee790e9
2025-03-24 02:17:36,687 - DEBUG - Requesting: http://10.0.0.34:8082/project/cb6be8dd-5a98-4bbe-b240-631f6d7cf858
2025-03-24 02:17:36,761 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f1aa6038-10d2-4af1-9137-04773399a1bf
2025-03-24 02:17:36,772 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f1aa6038-10d2-4af1-9137-04773399a1bf
2025-03-24 02:17:36,782 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/430e8a6a-e8cc-4e20-bdd7-82b366de4348
2025-03-24 02:17:36,789 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/430e8a6a-e8cc-4e20-bdd7-82b366de4348
2025-03-24 02:17:36,796 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/68c69be0-e1aa-4b09-9976-a19f3b50b664
2025-03-24 02:17:36,802 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-24 02:17:36,802 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f1aa6038-10d2-4af1-9137-04773399a1bf
2025-03-24 02:17:36,812 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/430e8a6a-e8cc-4e20-bdd7-82b366de4348
2025-03-24 02:17:36,827 - INFO - Verified VN network id 9 for VN f1aa6038-10d2-4af1-9137-04773399a1bf
2025-03-24 02:17:36,827 - INFO - Verifications in API Server for VN ctest-vn-52880648 passed
2025-03-24 02:17:36,827 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f1aa6038-10d2-4af1-9137-04773399a1bf
2025-03-24 02:17:36,839 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/430e8a6a-e8cc-4e20-bdd7-82b366de4348
2025-03-24 02:17:36,847 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/430e8a6a-e8cc-4e20-bdd7-82b366de4348
2025-03-24 02:17:36,854 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/68c69be0-e1aa-4b09-9976-a19f3b50b664
2025-03-24 02:17:36,865 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-52880648', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42935498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17413836703098096369', 'uuid-lslong': '10463837169231962559'}, 'enable': 'true', 'created': '2025-03-24T02:17:34', 'last-modified': '2025-03-24T02:17:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.360053'}
2025-03-24 02:17:36,872 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-24 02:17:36,872 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52880648 passed
2025-03-24 02:17:36,872 - DEBUG - ====Verifying policy data for ctest-vn-52880648 in API_Server ======
2025-03-24 02:17:36,872 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-24 02:17:36,879 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6fd2423e-7d6c-4b9d-9d59-98ad1ee790e9
2025-03-24 02:17:36,890 - DEBUG - Requesting: http://10.0.0.34:8082/project/cb6be8dd-5a98-4bbe-b240-631f6d7cf858
2025-03-24 02:17:36,962 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f1aa6038-10d2-4af1-9137-04773399a1bf
2025-03-24 02:17:36,973 - DEBUG - ==>Verifying data for policy with id: 25c1a1a8-d500-429f-ac4a-a3f67f248304, fqn: ['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-policy-allow-all-20648036']
2025-03-24 02:17:36,973 - INFO - VN ctest-vn-52880648 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-24 02:17:36,973 - DEBUG - Verifying the vn in opserver
2025-03-24 02:17:36,973 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-52880648 virtual network link through opserver 10.0.0.34
2025-03-24 02:17:36,973 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-03-24 02:17:36,983 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-52880648', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-52880648?flat'}
2025-03-24 02:17:36,983 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-52880648 is found in opserver
2025-03-24 02:17:36,995 - DEBUG - Do not have enough data to verify VN in agent
2025-03-24 02:17:37,000 - DEBUG - VRF ids for VN ctest-vn-52880648: {}
2025-03-24 02:17:37,057 - DEBUG - Services list from nova: [