2025-06-20 15:21:00,045 - INFO - Domain Default found not creating
2025-06-20 15:21:00,175 - INFO - Project ctest-TestBasicPolicy-09212387 not found, creating it
2025-06-20 15:21:00,610 - INFO - Created Project:ctest-TestBasicPolicy-09212387, ID : 5c8907d5-5e5d-4b6c-ac07-9672f998a166
2025-06-20 15:21:02,084 - INFO - ================================================================================
2025-06-20 15:21:02,084 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-20 15:21:02,084 - 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-06-20 15:21:02,339 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.17': '0'}} with
2025-06-20 15:21:02,339 - INFO - Initial checks done. Running the testcase now
2025-06-20 15:21:02,339 - INFO -
2025-06-20 15:21:02,880 - DEBUG - Response for create_network : {'network': {'id': '892e5597-50d4-4800-bf3e-c3461e6a5fec', 'name': 'ctest-vn-17513282', 'tenant_id': '5c8907d55e5d4b6cac079672f998a166', 'project_id': '5c8907d55e5d4b6cac079672f998a166', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09212387', 'ctest-vn-17513282'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 15:21:03,031 - DEBUG - Response for create_subnet : {'subnet': {'id': '71e98e7b-2e8a-4ecb-940d-9b9011eb60b7', 'name': '', 'tenant_id': '5c8907d55e5d4b6cac079672f998a166', 'network_id': '892e5597-50d4-4800-bf3e-c3461e6a5fec', 'ip_version': 4, 'cidr': '204.221.156.64/26', 'allocation_pools': [{'start': '204.221.156.66', 'end': '204.221.156.126'}], 'gateway_ip': '204.221.156.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.221.156.66', 'tags': [], 'project_id': '5c8907d55e5d4b6cac079672f998a166'}}
2025-06-20 15:21:03,046 - INFO - Created VN ctest-vn-17513282
2025-06-20 15:21:03,097 - DEBUG - VN ctest-vn-17513282 UUID is 892e5597-50d4-4800-bf3e-c3461e6a5fec
2025-06-20 15:21:03,409 - DEBUG - Response for create_network : {'network': {'id': '3fd9d958-1f51-4459-93fd-5ce4cc45e3aa', 'name': 'ctest-vn-37382431', 'tenant_id': '5c8907d55e5d4b6cac079672f998a166', 'project_id': '5c8907d55e5d4b6cac079672f998a166', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09212387', 'ctest-vn-37382431'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 15:21:03,598 - DEBUG - Response for create_subnet : {'subnet': {'id': '195d203a-d8c9-41e3-9ea1-26e036da092f', 'name': '', 'tenant_id': '5c8907d55e5d4b6cac079672f998a166', 'network_id': '3fd9d958-1f51-4459-93fd-5ce4cc45e3aa', 'ip_version': 4, 'cidr': '211.227.203.64/26', 'allocation_pools': [{'start': '211.227.203.66', 'end': '211.227.203.126'}], 'gateway_ip': '211.227.203.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.227.203.66', 'tags': [], 'project_id': '5c8907d55e5d4b6cac079672f998a166'}}
2025-06-20 15:21:03,617 - INFO - Created VN ctest-vn-37382431
2025-06-20 15:21:03,676 - DEBUG - VN ctest-vn-37382431 UUID is 3fd9d958-1f51-4459-93fd-5ce4cc45e3aa
2025-06-20 15:21:03,798 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09212387:ctest-vn-17513282, 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-09212387:ctest-vn-37382431, 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-06-20 15:21:04,102 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '892e5597-50d4-4800-bf3e-c3461e6a5fec', 'name': 'ctest-vn-17513282', 'tenant_id': '5c8907d55e5d4b6cac079672f998a166', 'project_id': '5c8907d55e5d4b6cac079672f998a166', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71e98e7b-2e8a-4ecb-940d-9b9011eb60b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09212387', 'ctest-vn-17513282'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09212387', 'ctest-policy-allow-all-38503807']], 'subnet_ipam': [{'subnet_cidr': '204.221.156.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 15:21:04,370 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3fd9d958-1f51-4459-93fd-5ce4cc45e3aa', 'name': 'ctest-vn-37382431', 'tenant_id': '5c8907d55e5d4b6cac079672f998a166', 'project_id': '5c8907d55e5d4b6cac079672f998a166', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['195d203a-d8c9-41e3-9ea1-26e036da092f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09212387', 'ctest-vn-37382431'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09212387', 'ctest-policy-allow-all-38503807']], 'subnet_ipam': [{'subnet_cidr': '211.227.203.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 15:21:04,521 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-06-20 15:21:04,820 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-06-20 15:21:04,849 - DEBUG - Requesting: http://10.0.0.241:8082/domain/931e4a2a-bd3e-48d7-90a6-0f94815c1059
2025-06-20 15:21:04,863 - DEBUG - Requesting: http://10.0.0.241:8082/project/5c8907d5-5e5d-4b6c-ac07-9672f998a166
2025-06-20 15:21:04,936 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/892e5597-50d4-4800-bf3e-c3461e6a5fec
2025-06-20 15:21:04,947 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/892e5597-50d4-4800-bf3e-c3461e6a5fec
2025-06-20 15:21:04,957 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b575180d-c6b2-4612-9174-92e19b68afa7
2025-06-20 15:21:04,965 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b575180d-c6b2-4612-9174-92e19b68afa7
2025-06-20 15:21:04,972 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/57081304-066a-4e5f-90e1-849373c10265
2025-06-20 15:21:04,979 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 15:21:04,979 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/892e5597-50d4-4800-bf3e-c3461e6a5fec
2025-06-20 15:21:04,989 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b575180d-c6b2-4612-9174-92e19b68afa7
2025-06-20 15:21:05,003 - INFO - Verified VN network id 8 for VN 892e5597-50d4-4800-bf3e-c3461e6a5fec
2025-06-20 15:21:05,003 - INFO - Verifications in API Server for VN ctest-vn-17513282 passed
2025-06-20 15:21:05,003 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/892e5597-50d4-4800-bf3e-c3461e6a5fec
2025-06-20 15:21:05,013 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b575180d-c6b2-4612-9174-92e19b68afa7
2025-06-20 15:21:05,023 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b575180d-c6b2-4612-9174-92e19b68afa7
2025-06-20 15:21:05,030 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/57081304-066a-4e5f-90e1-849373c10265
2025-06-20 15:21:05,042 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09212387:ctest-vn-17513282', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09212387', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9884932340509329408', 'uuid-lslong': '13780666615725711340'}, 'enable': 'true', 'created': '2025-06-20T15:21:02', 'last-modified': '2025-06-20T15:21:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964993'}
2025-06-20 15:21:05,049 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 15:21:05,049 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17513282 passed
2025-06-20 15:21:05,049 - DEBUG - ====Verifying policy data for ctest-vn-17513282 in API_Server ======
2025-06-20 15:21:05,050 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-06-20 15:21:05,064 - DEBUG - Requesting: http://10.0.0.241:8082/domain/931e4a2a-bd3e-48d7-90a6-0f94815c1059
2025-06-20 15:21:05,076 - DEBUG - Requesting: http://10.0.0.241:8082/project/5c8907d5-5e5d-4b6c-ac07-9672f998a166
2025-06-20 15:21:05,152 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/892e5597-50d4-4800-bf3e-c3461e6a5fec
2025-06-20 15:21:05,162 - DEBUG - ==>Verifying data for policy with id: 6f0cdac3-a02f-4081-978f-add5b3f95f26, fqn: ['default-domain', 'ctest-TestBasicPolicy-09212387', 'ctest-policy-allow-all-38503807']
2025-06-20 15:21:05,162 - INFO - VN ctest-vn-17513282 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 15:21:05,162 - DEBUG - Verifying the vn in opserver
2025-06-20 15:21:05,163 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09212387:ctest-vn-17513282 virtual network link through opserver 10.0.0.241
2025-06-20 15:21:05,163 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-06-20 15:21:05,456 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-06-20 15:21:05,510 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09212387:ctest-vn-17513282', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09212387:ctest-vn-17513282?flat'}
2025-06-20 15:21:05,510 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09212387:ctest-vn-17513282 is found in opserver
2025-06-20 15:21:05,521 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 15:21:05,527 - DEBUG - VRF ids for VN ctest-vn-17513282: {}
2025-06-20 15:21:05,527 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-06-20 15:21:05,534 - DEBUG - Requesting: http://10.0.0.241:8082/domain/931e4a2a-bd3e-48d7-90a6-0f94815c1059
2025-06-20 15:21:05,547 - DEBUG - Requesting: http://10.0.0.241:8082/project/5c8907d5-5e5d-4b6c-ac07-9672f998a166
2025-06-20 15:21:05,631 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3fd9d958-1f51-4459-93fd-5ce4cc45e3aa
2025-06-20 15:21:05,643 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3fd9d958-1f51-4459-93fd-5ce4cc45e3aa
2025-06-20 15:21:05,652 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/88ee39b4-0d96-4a07-966b-5054fbcb1617
2025-06-20 15:21:05,661 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/88ee39b4-0d96-4a07-966b-5054fbcb1617
2025-06-20 15:21:05,669 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/d8de3744-ac38-4b6d-b4c1-1c282ad9deec
2025-06-20 15:21:05,675 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 15:21:05,675 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3fd9d958-1f51-4459-93fd-5ce4cc45e3aa
2025-06-20 15:21:05,686 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/88ee39b4-0d96-4a07-966b-5054fbcb1617
2025-06-20 15:21:05,704 - INFO - Verified VN network id 9 for VN 3fd9d958-1f51-4459-93fd-5ce4cc45e3aa
2025-06-20 15:21:05,704 - INFO - Verifications in API Server for VN ctest-vn-37382431 passed
2025-06-20 15:21:05,704 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3fd9d958-1f51-4459-93fd-5ce4cc45e3aa
2025-06-20 15:21:05,714 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/88ee39b4-0d96-4a07-966b-5054fbcb1617
2025-06-20 15:21:05,724 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/88ee39b4-0d96-4a07-966b-5054fbcb1617
2025-06-20 15:21:05,731 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/d8de3744-ac38-4b6d-b4c1-1c282ad9deec
2025-06-20 15:21:05,744 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09212387:ctest-vn-37382431', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09212387', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4600947466841441369', 'uuid-lslong': '10663781630432633770'}, 'enable': 'true', 'created': '2025-06-20T15:21:03', 'last-modified': '2025-06-20T15:21:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.438103'}
2025-06-20 15:21:05,750 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 15:21:05,751 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37382431 passed
2025-06-20 15:21:05,751 - DEBUG - ====Verifying policy data for ctest-vn-37382431 in API_Server ======
2025-06-20 15:21:05,751 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-06-20 15:21:05,757 - DEBUG - Requesting: http://10.0.0.241:8082/domain/931e4a2a-bd3e-48d7-90a6-0f94815c1059
2025-06-20 15:21:05,769 - DEBUG - Requesting: http://10.0.0.241:8082/project/5c8907d5-5e5d-4b6c-ac07-9672f998a166
2025-06-20 15:21:05,843 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3fd9d958-1f51-4459-93fd-5ce4cc45e3aa
2025-06-20 15:21:05,853 - DEBUG - ==>Verifying data for policy with id: 6f0cdac3-a02f-4081-978f-add5b3f95f26, fqn: ['default-domain', 'ctest-TestBasicPolicy-09212387', 'ctest-policy-allow-all-38503807']
2025-06-20 15:21:05,853 - INFO - VN ctest-vn-37382431 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 15:21:05,853 - DEBUG - Verifying the vn in opserver
2025-06-20 15:21:05,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09212387:ctest-vn-37382431 virtual network link through opserver 10.0.0.241
2025-06-20 15:21:05,853 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-06-20 15:21:05,864 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09212387:ctest-vn-37382431', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09212387:ctest-vn-37382431?flat'}
2025-06-20 15:21:05,864 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09212387:ctest-vn-37382431 is found in opserver
2025-06-20 15:21:05,876 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 15:21:05,881 - DEBUG - VRF ids for VN ctest-vn-37382431: {}
2025-06-20 15:21:05,943 - DEBUG - Services list from nova: [