2025-08-07 14:23:36,011 - INFO - Domain Default found not creating
2025-08-07 14:23:36,185 - INFO - Project ctest-TestBasicPolicy-35582163 not found, creating it
2025-08-07 14:23:36,663 - INFO - Created Project:ctest-TestBasicPolicy-35582163, ID : a157568d-1210-4057-98d3-8fffc073c9da
2025-08-07 14:23:38,331 - INFO - ================================================================================
2025-08-07 14:23:38,331 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-07 14:23:38,331 - 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-07 14:23:38,612 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-08-07 14:23:38,613 - INFO - Initial checks done. Running the testcase now
2025-08-07 14:23:38,613 - INFO -
2025-08-07 14:23:39,258 - DEBUG - Response for create_network : {'network': {'id': 'fe455aa2-5112-43d9-812c-e1214ac158bf', 'name': 'ctest-vn-85741531', 'tenant_id': 'a157568d1210405798d38fffc073c9da', 'project_id': 'a157568d1210405798d38fffc073c9da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35582163', 'ctest-vn-85741531'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 14:23:39,465 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f3a635f9-b440-40ea-9219-c6e502d3c4ba', 'name': '', 'tenant_id': 'a157568d1210405798d38fffc073c9da', 'network_id': 'fe455aa2-5112-43d9-812c-e1214ac158bf', 'ip_version': 4, 'cidr': '197.170.39.0/26', 'allocation_pools': [{'start': '197.170.39.2', 'end': '197.170.39.62'}], 'gateway_ip': '197.170.39.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.170.39.2', 'tags': [], 'project_id': 'a157568d1210405798d38fffc073c9da'}}
2025-08-07 14:23:39,486 - INFO - Created VN ctest-vn-85741531
2025-08-07 14:23:39,541 - DEBUG - VN ctest-vn-85741531 UUID is fe455aa2-5112-43d9-812c-e1214ac158bf
2025-08-07 14:23:39,908 - DEBUG - Response for create_network : {'network': {'id': '0ebe8015-6677-43bf-b79f-c834fdf7ddc5', 'name': 'ctest-vn-38553061', 'tenant_id': 'a157568d1210405798d38fffc073c9da', 'project_id': 'a157568d1210405798d38fffc073c9da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35582163', 'ctest-vn-38553061'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 14:23:40,136 - DEBUG - Response for create_subnet : {'subnet': {'id': '0eef939e-ae8b-4bad-a90e-52d73a1a6211', 'name': '', 'tenant_id': 'a157568d1210405798d38fffc073c9da', 'network_id': '0ebe8015-6677-43bf-b79f-c834fdf7ddc5', 'ip_version': 4, 'cidr': '75.79.64.64/26', 'allocation_pools': [{'start': '75.79.64.66', 'end': '75.79.64.126'}], 'gateway_ip': '75.79.64.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.79.64.66', 'tags': [], 'project_id': 'a157568d1210405798d38fffc073c9da'}}
2025-08-07 14:23:40,164 - INFO - Created VN ctest-vn-38553061
2025-08-07 14:23:40,225 - DEBUG - VN ctest-vn-38553061 UUID is 0ebe8015-6677-43bf-b79f-c834fdf7ddc5
2025-08-07 14:23:40,363 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35582163:ctest-vn-85741531, 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-35582163:ctest-vn-38553061, 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-07 14:23:40,711 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe455aa2-5112-43d9-812c-e1214ac158bf', 'name': 'ctest-vn-85741531', 'tenant_id': 'a157568d1210405798d38fffc073c9da', 'project_id': 'a157568d1210405798d38fffc073c9da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f3a635f9-b440-40ea-9219-c6e502d3c4ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35582163', 'ctest-vn-85741531'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35582163', 'ctest-policy-allow-all-44066569']], 'subnet_ipam': [{'subnet_cidr': '197.170.39.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-07 14:23:41,031 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ebe8015-6677-43bf-b79f-c834fdf7ddc5', 'name': 'ctest-vn-38553061', 'tenant_id': 'a157568d1210405798d38fffc073c9da', 'project_id': 'a157568d1210405798d38fffc073c9da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0eef939e-ae8b-4bad-a90e-52d73a1a6211'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35582163', 'ctest-vn-38553061'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35582163', 'ctest-policy-allow-all-44066569']], 'subnet_ipam': [{'subnet_cidr': '75.79.64.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-07 14:23:41,201 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 14:23:41,576 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 14:23:41,611 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b8a0d0b8-4c65-4c5d-a22f-785df37aa8fa
2025-08-07 14:23:41,628 - DEBUG - Requesting: http://10.0.0.38:8082/project/a157568d-1210-4057-98d3-8fffc073c9da
2025-08-07 14:23:41,707 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe455aa2-5112-43d9-812c-e1214ac158bf
2025-08-07 14:23:41,720 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe455aa2-5112-43d9-812c-e1214ac158bf
2025-08-07 14:23:41,732 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3038518-199f-4101-b859-2c754ebb5044
2025-08-07 14:23:41,743 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3038518-199f-4101-b859-2c754ebb5044
2025-08-07 14:23:41,751 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9f251067-64ff-400e-a34c-cd1ee751a813
2025-08-07 14:23:41,760 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-07 14:23:41,760 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe455aa2-5112-43d9-812c-e1214ac158bf
2025-08-07 14:23:41,771 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3038518-199f-4101-b859-2c754ebb5044
2025-08-07 14:23:41,790 - INFO - Verified VN network id 11 for VN fe455aa2-5112-43d9-812c-e1214ac158bf
2025-08-07 14:23:41,790 - INFO - Verifications in API Server for VN ctest-vn-85741531 passed
2025-08-07 14:23:41,790 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe455aa2-5112-43d9-812c-e1214ac158bf
2025-08-07 14:23:41,805 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3038518-199f-4101-b859-2c754ebb5044
2025-08-07 14:23:41,816 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3038518-199f-4101-b859-2c754ebb5044
2025-08-07 14:23:41,825 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9f251067-64ff-400e-a34c-cd1ee751a813
2025-08-07 14:23:41,844 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35582163:ctest-vn-85741531', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35582163', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18322150312218084313', 'uuid-lslong': '9308062062972328127'}, 'enable': 'true', 'created': '2025-08-07T14:23:39', 'last-modified': '2025-08-07T14:23:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.173640'}
2025-08-07 14:23:41,853 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-07 14:23:41,853 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85741531 passed
2025-08-07 14:23:41,854 - DEBUG - ====Verifying policy data for ctest-vn-85741531 in API_Server ======
2025-08-07 14:23:41,854 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 14:23:41,861 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b8a0d0b8-4c65-4c5d-a22f-785df37aa8fa
2025-08-07 14:23:41,876 - DEBUG - Requesting: http://10.0.0.38:8082/project/a157568d-1210-4057-98d3-8fffc073c9da
2025-08-07 14:23:41,953 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe455aa2-5112-43d9-812c-e1214ac158bf
2025-08-07 14:23:41,966 - DEBUG - ==>Verifying data for policy with id: fa9cf5b1-2fec-49d6-ad2a-3b9d69037abf, fqn: ['default-domain', 'ctest-TestBasicPolicy-35582163', 'ctest-policy-allow-all-44066569']
2025-08-07 14:23:41,966 - INFO - VN ctest-vn-85741531 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-07 14:23:41,966 - DEBUG - Verifying the vn in opserver
2025-08-07 14:23:41,966 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35582163:ctest-vn-85741531 virtual network link through opserver 10.0.0.38
2025-08-07 14:23:41,966 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-07 14:23:42,325 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-07 14:23:42,397 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35582163:ctest-vn-85741531', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35582163:ctest-vn-85741531?flat'}
2025-08-07 14:23:42,397 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35582163:ctest-vn-85741531 is found in opserver
2025-08-07 14:23:42,416 - DEBUG - Do not have enough data to verify VN in agent
2025-08-07 14:23:42,424 - DEBUG - VRF ids for VN ctest-vn-85741531: {}
2025-08-07 14:23:42,424 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 14:23:42,433 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b8a0d0b8-4c65-4c5d-a22f-785df37aa8fa
2025-08-07 14:23:42,449 - DEBUG - Requesting: http://10.0.0.38:8082/project/a157568d-1210-4057-98d3-8fffc073c9da
2025-08-07 14:23:42,533 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ebe8015-6677-43bf-b79f-c834fdf7ddc5
2025-08-07 14:23:42,550 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ebe8015-6677-43bf-b79f-c834fdf7ddc5
2025-08-07 14:23:42,563 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e720872d-9204-42d7-8916-ab22f4c6e1a5
2025-08-07 14:23:42,574 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e720872d-9204-42d7-8916-ab22f4c6e1a5
2025-08-07 14:23:42,584 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9cd6a4ad-47c0-421b-87c5-8ad8163b50c3
2025-08-07 14:23:42,594 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-07 14:23:42,594 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ebe8015-6677-43bf-b79f-c834fdf7ddc5
2025-08-07 14:23:42,607 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e720872d-9204-42d7-8916-ab22f4c6e1a5
2025-08-07 14:23:42,627 - INFO - Verified VN network id 12 for VN 0ebe8015-6677-43bf-b79f-c834fdf7ddc5
2025-08-07 14:23:42,627 - INFO - Verifications in API Server for VN ctest-vn-38553061 passed
2025-08-07 14:23:42,627 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ebe8015-6677-43bf-b79f-c834fdf7ddc5
2025-08-07 14:23:42,640 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e720872d-9204-42d7-8916-ab22f4c6e1a5
2025-08-07 14:23:42,650 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e720872d-9204-42d7-8916-ab22f4c6e1a5
2025-08-07 14:23:42,662 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9cd6a4ad-47c0-421b-87c5-8ad8163b50c3
2025-08-07 14:23:42,679 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35582163:ctest-vn-38553061', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35582163', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1062427391507776447', 'uuid-lslong': '13231514360162540997'}, 'enable': 'true', 'created': '2025-08-07T14:23:39', 'last-modified': '2025-08-07T14:23:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.722841'}
2025-08-07 14:23:42,689 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-07 14:23:42,689 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38553061 passed
2025-08-07 14:23:42,689 - DEBUG - ====Verifying policy data for ctest-vn-38553061 in API_Server ======
2025-08-07 14:23:42,689 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 14:23:42,697 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b8a0d0b8-4c65-4c5d-a22f-785df37aa8fa
2025-08-07 14:23:42,711 - DEBUG - Requesting: http://10.0.0.38:8082/project/a157568d-1210-4057-98d3-8fffc073c9da
2025-08-07 14:23:42,796 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ebe8015-6677-43bf-b79f-c834fdf7ddc5
2025-08-07 14:23:42,808 - DEBUG - ==>Verifying data for policy with id: fa9cf5b1-2fec-49d6-ad2a-3b9d69037abf, fqn: ['default-domain', 'ctest-TestBasicPolicy-35582163', 'ctest-policy-allow-all-44066569']
2025-08-07 14:23:42,808 - INFO - VN ctest-vn-38553061 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-07 14:23:42,808 - DEBUG - Verifying the vn in opserver
2025-08-07 14:23:42,808 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35582163:ctest-vn-38553061 virtual network link through opserver 10.0.0.38
2025-08-07 14:23:42,808 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-07 14:23:42,821 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35582163:ctest-vn-38553061', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35582163:ctest-vn-38553061?flat'}
2025-08-07 14:23:42,821 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35582163:ctest-vn-38553061 is found in opserver
2025-08-07 14:23:42,834 - DEBUG - Do not have enough data to verify VN in agent
2025-08-07 14:23:42,841 - DEBUG - VRF ids for VN ctest-vn-38553061: {}
2025-08-07 14:23:42,913 - DEBUG - Services list from nova: [