2025-04-25 07:07:00,073 - INFO - Domain Default found not creating
2025-04-25 07:07:00,236 - INFO - Project ctest-TestBasicPolicy-17813948 not found, creating it
2025-04-25 07:07:00,723 - INFO - Created Project:ctest-TestBasicPolicy-17813948, ID : 4079a99e-397f-4fb4-ad98-fe36b066f38d
2025-04-25 07:07:02,339 - INFO - ================================================================================
2025-04-25 07:07:02,339 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-25 07:07:02,339 - 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-04-25 07:07:02,597 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-25 07:07:02,597 - INFO - Initial checks done. Running the testcase now
2025-04-25 07:07:02,597 - INFO -
2025-04-25 07:07:03,201 - DEBUG - Response for create_network : {'network': {'id': '96b90668-b235-4b9c-bdf4-7ab9eff500cf', 'name': 'ctest-vn-79556554', 'tenant_id': '4079a99e397f4fb4ad98fe36b066f38d', 'project_id': '4079a99e397f4fb4ad98fe36b066f38d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-vn-79556554'], 'port_security_enabled': True, 'description': ''}}
2025-04-25 07:07:03,422 - DEBUG - Response for create_subnet : {'subnet': {'id': '4310546b-ce9c-4589-ae5c-f256f36bbeff', 'name': '', 'tenant_id': '4079a99e397f4fb4ad98fe36b066f38d', 'network_id': '96b90668-b235-4b9c-bdf4-7ab9eff500cf', 'ip_version': 4, 'cidr': '97.59.196.128/26', 'allocation_pools': [{'start': '97.59.196.130', 'end': '97.59.196.190'}], 'gateway_ip': '97.59.196.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.59.196.130', 'tags': [], 'project_id': '4079a99e397f4fb4ad98fe36b066f38d'}}
2025-04-25 07:07:03,441 - INFO - Created VN ctest-vn-79556554
2025-04-25 07:07:03,496 - DEBUG - VN ctest-vn-79556554 UUID is 96b90668-b235-4b9c-bdf4-7ab9eff500cf
2025-04-25 07:07:03,812 - DEBUG - Response for create_network : {'network': {'id': '5f59e526-bb40-42a4-b989-dcb700a0ffcb', 'name': 'ctest-vn-08142127', 'tenant_id': '4079a99e397f4fb4ad98fe36b066f38d', 'project_id': '4079a99e397f4fb4ad98fe36b066f38d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-vn-08142127'], 'port_security_enabled': True, 'description': ''}}
2025-04-25 07:07:04,320 - DEBUG - Response for create_subnet : {'subnet': {'id': '7bfc9e4c-33a4-4f9c-950b-d8889c8406ec', 'name': '', 'tenant_id': '4079a99e397f4fb4ad98fe36b066f38d', 'network_id': '5f59e526-bb40-42a4-b989-dcb700a0ffcb', 'ip_version': 4, 'cidr': '4.225.38.0/26', 'allocation_pools': [{'start': '4.225.38.2', 'end': '4.225.38.62'}], 'gateway_ip': '4.225.38.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.225.38.2', 'tags': [], 'project_id': '4079a99e397f4fb4ad98fe36b066f38d'}}
2025-04-25 07:07:04,347 - INFO - Created VN ctest-vn-08142127
2025-04-25 07:07:04,404 - DEBUG - VN ctest-vn-08142127 UUID is 5f59e526-bb40-42a4-b989-dcb700a0ffcb
2025-04-25 07:07:04,629 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-79556554, 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-17813948:ctest-vn-08142127, 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-04-25 07:07:05,003 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96b90668-b235-4b9c-bdf4-7ab9eff500cf', 'name': 'ctest-vn-79556554', 'tenant_id': '4079a99e397f4fb4ad98fe36b066f38d', 'project_id': '4079a99e397f4fb4ad98fe36b066f38d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4310546b-ce9c-4589-ae5c-f256f36bbeff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-vn-79556554'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-policy-allow-all-02435182']], 'subnet_ipam': [{'subnet_cidr': '97.59.196.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-25 07:07:05,245 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f59e526-bb40-42a4-b989-dcb700a0ffcb', 'name': 'ctest-vn-08142127', 'tenant_id': '4079a99e397f4fb4ad98fe36b066f38d', 'project_id': '4079a99e397f4fb4ad98fe36b066f38d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7bfc9e4c-33a4-4f9c-950b-d8889c8406ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-vn-08142127'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-policy-allow-all-02435182']], 'subnet_ipam': [{'subnet_cidr': '4.225.38.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-25 07:07:05,408 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-25 07:07:05,749 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-25 07:07:05,779 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0480e13b-3aaf-4876-a0a7-b290bb807a58
2025-04-25 07:07:05,793 - DEBUG - Requesting: http://10.0.0.254:8082/project/4079a99e-397f-4fb4-ad98-fe36b066f38d
2025-04-25 07:07:05,877 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96b90668-b235-4b9c-bdf4-7ab9eff500cf
2025-04-25 07:07:05,892 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96b90668-b235-4b9c-bdf4-7ab9eff500cf
2025-04-25 07:07:05,903 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd90dc34-652c-4819-824d-8eabee107020
2025-04-25 07:07:05,911 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd90dc34-652c-4819-824d-8eabee107020
2025-04-25 07:07:05,919 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fcf02316-778e-4f00-833d-c32997b35c0f
2025-04-25 07:07:05,927 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-25 07:07:05,927 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96b90668-b235-4b9c-bdf4-7ab9eff500cf
2025-04-25 07:07:05,938 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd90dc34-652c-4819-824d-8eabee107020
2025-04-25 07:07:05,955 - INFO - Verified VN network id 9 for VN 96b90668-b235-4b9c-bdf4-7ab9eff500cf
2025-04-25 07:07:05,955 - INFO - Verifications in API Server for VN ctest-vn-79556554 passed
2025-04-25 07:07:05,955 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96b90668-b235-4b9c-bdf4-7ab9eff500cf
2025-04-25 07:07:05,965 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd90dc34-652c-4819-824d-8eabee107020
2025-04-25 07:07:05,973 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd90dc34-652c-4819-824d-8eabee107020
2025-04-25 07:07:05,981 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fcf02316-778e-4f00-833d-c32997b35c0f
2025-04-25 07:07:05,994 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-79556554', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17813948', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10860719023116864412', 'uuid-lslong': '13687700106499129551'}, 'enable': 'true', 'created': '2025-04-25T07:07:03', 'last-modified': '2025-04-25T07:07:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020430'}
2025-04-25 07:07:06,001 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-25 07:07:06,001 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79556554 passed
2025-04-25 07:07:06,002 - DEBUG - ====Verifying policy data for ctest-vn-79556554 in API_Server ======
2025-04-25 07:07:06,002 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-25 07:07:06,009 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0480e13b-3aaf-4876-a0a7-b290bb807a58
2025-04-25 07:07:06,022 - DEBUG - Requesting: http://10.0.0.254:8082/project/4079a99e-397f-4fb4-ad98-fe36b066f38d
2025-04-25 07:07:06,098 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96b90668-b235-4b9c-bdf4-7ab9eff500cf
2025-04-25 07:07:06,109 - DEBUG - ==>Verifying data for policy with id: 5820fbab-bf88-4b2d-921d-b607dadf00c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-policy-allow-all-02435182']
2025-04-25 07:07:06,109 - INFO - VN ctest-vn-79556554 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-25 07:07:06,109 - DEBUG - Verifying the vn in opserver
2025-04-25 07:07:06,109 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-79556554 virtual network link through opserver 10.0.0.254
2025-04-25 07:07:06,110 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-25 07:07:06,445 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-25 07:07:06,510 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-79556554', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-79556554?flat'}
2025-04-25 07:07:06,510 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-79556554 is found in opserver
2025-04-25 07:07:06,524 - DEBUG - Do not have enough data to verify VN in agent
2025-04-25 07:07:06,529 - DEBUG - VRF ids for VN ctest-vn-79556554: {}
2025-04-25 07:07:06,529 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-25 07:07:06,536 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0480e13b-3aaf-4876-a0a7-b290bb807a58
2025-04-25 07:07:06,548 - DEBUG - Requesting: http://10.0.0.254:8082/project/4079a99e-397f-4fb4-ad98-fe36b066f38d
2025-04-25 07:07:06,627 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5f59e526-bb40-42a4-b989-dcb700a0ffcb
2025-04-25 07:07:06,642 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5f59e526-bb40-42a4-b989-dcb700a0ffcb
2025-04-25 07:07:06,654 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3885278-73ca-421c-817f-6cce3d72dfb4
2025-04-25 07:07:06,663 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3885278-73ca-421c-817f-6cce3d72dfb4
2025-04-25 07:07:06,672 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dacfc17c-ba21-4f8c-8827-f652b6683062
2025-04-25 07:07:06,680 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-25 07:07:06,680 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5f59e526-bb40-42a4-b989-dcb700a0ffcb
2025-04-25 07:07:06,692 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3885278-73ca-421c-817f-6cce3d72dfb4
2025-04-25 07:07:06,708 - INFO - Verified VN network id 10 for VN 5f59e526-bb40-42a4-b989-dcb700a0ffcb
2025-04-25 07:07:06,708 - INFO - Verifications in API Server for VN ctest-vn-08142127 passed
2025-04-25 07:07:06,708 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5f59e526-bb40-42a4-b989-dcb700a0ffcb
2025-04-25 07:07:06,720 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3885278-73ca-421c-817f-6cce3d72dfb4
2025-04-25 07:07:06,727 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3885278-73ca-421c-817f-6cce3d72dfb4
2025-04-25 07:07:06,735 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dacfc17c-ba21-4f8c-8827-f652b6683062
2025-04-25 07:07:06,748 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-08142127', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17813948', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6870774661043471012', 'uuid-lslong': '13369459647373705163'}, 'enable': 'true', 'created': '2025-04-25T07:07:03', 'last-modified': '2025-04-25T07:07:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.530079'}
2025-04-25 07:07:06,756 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-25 07:07:06,756 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08142127 passed
2025-04-25 07:07:06,757 - DEBUG - ====Verifying policy data for ctest-vn-08142127 in API_Server ======
2025-04-25 07:07:06,757 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-25 07:07:06,763 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0480e13b-3aaf-4876-a0a7-b290bb807a58
2025-04-25 07:07:06,776 - DEBUG - Requesting: http://10.0.0.254:8082/project/4079a99e-397f-4fb4-ad98-fe36b066f38d
2025-04-25 07:07:06,854 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5f59e526-bb40-42a4-b989-dcb700a0ffcb
2025-04-25 07:07:06,871 - DEBUG - ==>Verifying data for policy with id: 5820fbab-bf88-4b2d-921d-b607dadf00c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-policy-allow-all-02435182']
2025-04-25 07:07:06,871 - INFO - VN ctest-vn-08142127 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-25 07:07:06,871 - DEBUG - Verifying the vn in opserver
2025-04-25 07:07:06,871 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-08142127 virtual network link through opserver 10.0.0.254
2025-04-25 07:07:06,871 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-25 07:07:06,884 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-08142127', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-08142127?flat'}
2025-04-25 07:07:06,884 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-08142127 is found in opserver
2025-04-25 07:07:06,896 - DEBUG - Do not have enough data to verify VN in agent
2025-04-25 07:07:06,902 - DEBUG - VRF ids for VN ctest-vn-08142127: {}
2025-04-25 07:07:06,960 - DEBUG - Services list from nova: [