2025-08-19 16:04:00,550 - INFO - Domain Default found not creating
2025-08-19 16:04:00,671 - INFO - Project ctest-TestBasicPolicy-85338336 not found, creating it
2025-08-19 16:04:01,108 - INFO - Created Project:ctest-TestBasicPolicy-85338336, ID : 04223cdb-01e8-4819-91cc-4bdab932c795
2025-08-19 16:04:02,424 - INFO - ================================================================================
2025-08-19 16:04:02,425 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-19 16:04:02,425 - 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-19 16:04:02,676 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-08-19 16:04:02,676 - INFO - Initial checks done. Running the testcase now
2025-08-19 16:04:02,677 - INFO -
2025-08-19 16:04:03,199 - DEBUG - Response for create_network : {'network': {'id': '960cb2cd-111d-4905-90ef-0d8cfb955011', 'name': 'ctest-vn-61899407', 'tenant_id': '04223cdb01e8481991cc4bdab932c795', 'project_id': '04223cdb01e8481991cc4bdab932c795', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85338336', 'ctest-vn-61899407'], 'port_security_enabled': True, 'description': ''}}
2025-08-19 16:04:03,439 - DEBUG - Response for create_subnet : {'subnet': {'id': '4036fc9c-f71a-424c-949b-1edda726d338', 'name': '', 'tenant_id': '04223cdb01e8481991cc4bdab932c795', 'network_id': '960cb2cd-111d-4905-90ef-0d8cfb955011', 'ip_version': 4, 'cidr': '24.245.208.64/26', 'allocation_pools': [{'start': '24.245.208.66', 'end': '24.245.208.126'}], 'gateway_ip': '24.245.208.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.245.208.66', 'tags': [], 'project_id': '04223cdb01e8481991cc4bdab932c795'}}
2025-08-19 16:04:03,457 - INFO - Created VN ctest-vn-61899407
2025-08-19 16:04:03,507 - DEBUG - VN ctest-vn-61899407 UUID is 960cb2cd-111d-4905-90ef-0d8cfb955011
2025-08-19 16:04:03,845 - DEBUG - Response for create_network : {'network': {'id': '02260555-decf-4189-b0a4-e137c114799f', 'name': 'ctest-vn-16959040', 'tenant_id': '04223cdb01e8481991cc4bdab932c795', 'project_id': '04223cdb01e8481991cc4bdab932c795', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85338336', 'ctest-vn-16959040'], 'port_security_enabled': True, 'description': ''}}
2025-08-19 16:04:04,069 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba9689a6-c634-46dd-996a-9cafd531af82', 'name': '', 'tenant_id': '04223cdb01e8481991cc4bdab932c795', 'network_id': '02260555-decf-4189-b0a4-e137c114799f', 'ip_version': 4, 'cidr': '145.243.151.0/26', 'allocation_pools': [{'start': '145.243.151.2', 'end': '145.243.151.62'}], 'gateway_ip': '145.243.151.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.243.151.2', 'tags': [], 'project_id': '04223cdb01e8481991cc4bdab932c795'}}
2025-08-19 16:04:04,087 - INFO - Created VN ctest-vn-16959040
2025-08-19 16:04:04,139 - DEBUG - VN ctest-vn-16959040 UUID is 02260555-decf-4189-b0a4-e137c114799f
2025-08-19 16:04:04,287 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85338336:ctest-vn-61899407, 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-85338336:ctest-vn-16959040, 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-19 16:04:04,580 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '960cb2cd-111d-4905-90ef-0d8cfb955011', 'name': 'ctest-vn-61899407', 'tenant_id': '04223cdb01e8481991cc4bdab932c795', 'project_id': '04223cdb01e8481991cc4bdab932c795', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4036fc9c-f71a-424c-949b-1edda726d338'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85338336', 'ctest-vn-61899407'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85338336', 'ctest-policy-allow-all-84672402']], 'subnet_ipam': [{'subnet_cidr': '24.245.208.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-19 16:04:04,806 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '02260555-decf-4189-b0a4-e137c114799f', 'name': 'ctest-vn-16959040', 'tenant_id': '04223cdb01e8481991cc4bdab932c795', 'project_id': '04223cdb01e8481991cc4bdab932c795', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba9689a6-c634-46dd-996a-9cafd531af82'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85338336', 'ctest-vn-16959040'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85338336', 'ctest-policy-allow-all-84672402']], 'subnet_ipam': [{'subnet_cidr': '145.243.151.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-19 16:04:04,971 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-19 16:04:05,259 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-19 16:04:05,283 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9e53828e-d96b-4a30-a45e-4673a4f195be
2025-08-19 16:04:05,296 - DEBUG - Requesting: http://10.0.0.50:8082/project/04223cdb-01e8-4819-91cc-4bdab932c795
2025-08-19 16:04:05,365 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/960cb2cd-111d-4905-90ef-0d8cfb955011
2025-08-19 16:04:05,375 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/960cb2cd-111d-4905-90ef-0d8cfb955011
2025-08-19 16:04:05,382 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f3c3ebd3-8bbf-470a-9ba6-6c06c04e4500
2025-08-19 16:04:05,387 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f3c3ebd3-8bbf-470a-9ba6-6c06c04e4500
2025-08-19 16:04:05,392 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/adc4c569-28dc-434d-8ff3-df0ba0106e42
2025-08-19 16:04:05,397 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-19 16:04:05,397 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/960cb2cd-111d-4905-90ef-0d8cfb955011
2025-08-19 16:04:05,404 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f3c3ebd3-8bbf-470a-9ba6-6c06c04e4500
2025-08-19 16:04:05,415 - INFO - Verified VN network id 12 for VN 960cb2cd-111d-4905-90ef-0d8cfb955011
2025-08-19 16:04:05,415 - INFO - Verifications in API Server for VN ctest-vn-61899407 passed
2025-08-19 16:04:05,415 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/960cb2cd-111d-4905-90ef-0d8cfb955011
2025-08-19 16:04:05,423 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f3c3ebd3-8bbf-470a-9ba6-6c06c04e4500
2025-08-19 16:04:05,428 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f3c3ebd3-8bbf-470a-9ba6-6c06c04e4500
2025-08-19 16:04:05,434 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/adc4c569-28dc-434d-8ff3-df0ba0106e42
2025-08-19 16:04:05,442 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85338336:ctest-vn-61899407', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85338336', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10812213399234889989', 'uuid-lslong': '10443580960062918673'}, 'enable': 'true', 'created': '2025-08-19T16:04:03', 'last-modified': '2025-08-19T16:04:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.890129'}
2025-08-19 16:04:05,447 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-19 16:04:05,447 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61899407 passed
2025-08-19 16:04:05,447 - DEBUG - ====Verifying policy data for ctest-vn-61899407 in API_Server ======
2025-08-19 16:04:05,447 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-19 16:04:05,451 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9e53828e-d96b-4a30-a45e-4673a4f195be
2025-08-19 16:04:05,460 - DEBUG - Requesting: http://10.0.0.50:8082/project/04223cdb-01e8-4819-91cc-4bdab932c795
2025-08-19 16:04:05,528 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/960cb2cd-111d-4905-90ef-0d8cfb955011
2025-08-19 16:04:05,538 - DEBUG - ==>Verifying data for policy with id: 03bde62f-c332-4352-992e-b19062826dec, fqn: ['default-domain', 'ctest-TestBasicPolicy-85338336', 'ctest-policy-allow-all-84672402']
2025-08-19 16:04:05,538 - INFO - VN ctest-vn-61899407 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-19 16:04:05,538 - DEBUG - Verifying the vn in opserver
2025-08-19 16:04:05,539 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85338336:ctest-vn-61899407 virtual network link through opserver 10.0.0.50
2025-08-19 16:04:05,539 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-19 16:04:05,826 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-19 16:04:05,873 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85338336:ctest-vn-61899407', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85338336:ctest-vn-61899407?flat'}
2025-08-19 16:04:05,873 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85338336:ctest-vn-61899407 is found in opserver
2025-08-19 16:04:05,881 - DEBUG - Do not have enough data to verify VN in agent
2025-08-19 16:04:05,885 - DEBUG - VRF ids for VN ctest-vn-61899407: {}
2025-08-19 16:04:05,885 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-19 16:04:05,889 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9e53828e-d96b-4a30-a45e-4673a4f195be
2025-08-19 16:04:05,899 - DEBUG - Requesting: http://10.0.0.50:8082/project/04223cdb-01e8-4819-91cc-4bdab932c795
2025-08-19 16:04:05,967 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/02260555-decf-4189-b0a4-e137c114799f
2025-08-19 16:04:05,977 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/02260555-decf-4189-b0a4-e137c114799f
2025-08-19 16:04:05,986 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bc309641-f1b4-413a-878f-ce5704eb879d
2025-08-19 16:04:05,992 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bc309641-f1b4-413a-878f-ce5704eb879d
2025-08-19 16:04:05,997 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/93fbb7e5-160b-44c4-84b2-2bbd612f0546
2025-08-19 16:04:06,002 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-19 16:04:06,002 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/02260555-decf-4189-b0a4-e137c114799f
2025-08-19 16:04:06,009 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bc309641-f1b4-413a-878f-ce5704eb879d
2025-08-19 16:04:06,020 - INFO - Verified VN network id 13 for VN 02260555-decf-4189-b0a4-e137c114799f
2025-08-19 16:04:06,020 - INFO - Verifications in API Server for VN ctest-vn-16959040 passed
2025-08-19 16:04:06,020 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/02260555-decf-4189-b0a4-e137c114799f
2025-08-19 16:04:06,029 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bc309641-f1b4-413a-878f-ce5704eb879d
2025-08-19 16:04:06,034 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bc309641-f1b4-413a-878f-ce5704eb879d
2025-08-19 16:04:06,039 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/93fbb7e5-160b-44c4-84b2-2bbd612f0546
2025-08-19 16:04:06,048 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85338336:ctest-vn-16959040', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85338336', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '154817103559344521', 'uuid-lslong': '12728546076434659743'}, 'enable': 'true', 'created': '2025-08-19T16:04:03', 'last-modified': '2025-08-19T16:04:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.261656'}
2025-08-19 16:04:06,053 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-19 16:04:06,053 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16959040 passed
2025-08-19 16:04:06,053 - DEBUG - ====Verifying policy data for ctest-vn-16959040 in API_Server ======
2025-08-19 16:04:06,053 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-19 16:04:06,058 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9e53828e-d96b-4a30-a45e-4673a4f195be
2025-08-19 16:04:06,068 - DEBUG - Requesting: http://10.0.0.50:8082/project/04223cdb-01e8-4819-91cc-4bdab932c795
2025-08-19 16:04:06,137 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/02260555-decf-4189-b0a4-e137c114799f
2025-08-19 16:04:06,145 - DEBUG - ==>Verifying data for policy with id: 03bde62f-c332-4352-992e-b19062826dec, fqn: ['default-domain', 'ctest-TestBasicPolicy-85338336', 'ctest-policy-allow-all-84672402']
2025-08-19 16:04:06,145 - INFO - VN ctest-vn-16959040 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-19 16:04:06,145 - DEBUG - Verifying the vn in opserver
2025-08-19 16:04:06,145 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85338336:ctest-vn-16959040 virtual network link through opserver 10.0.0.50
2025-08-19 16:04:06,145 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-19 16:04:06,153 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85338336:ctest-vn-16959040', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85338336:ctest-vn-16959040?flat'}
2025-08-19 16:04:06,153 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85338336:ctest-vn-16959040 is found in opserver
2025-08-19 16:04:06,161 - DEBUG - Do not have enough data to verify VN in agent
2025-08-19 16:04:06,165 - DEBUG - VRF ids for VN ctest-vn-16959040: {}
2025-08-19 16:04:06,217 - DEBUG - Services list from nova: [