2025-02-12 00:39:38,178 - INFO - Domain Default found not creating
2025-02-12 00:39:38,314 - INFO - Project ctest-TestBasicPolicy-49098785 not found, creating it
2025-02-12 00:39:38,757 - INFO - Created Project:ctest-TestBasicPolicy-49098785, ID : 97264126-992d-4273-9099-70ca19b6aa39
2025-02-12 00:39:40,257 - INFO - ================================================================================
2025-02-12 00:39:40,257 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-12 00:39:40,257 - 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-02-12 00:39:40,521 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.25': '0'}} with
2025-02-12 00:39:40,521 - INFO - Initial checks done. Running the testcase now
2025-02-12 00:39:40,521 - INFO -
2025-02-12 00:39:41,049 - DEBUG - Response for create_network : {'network': {'id': '9e453826-58ca-4c01-9c3a-2c83c29e7086', 'name': 'ctest-vn-80978118', 'tenant_id': '97264126992d4273909970ca19b6aa39', 'project_id': '97264126992d4273909970ca19b6aa39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49098785', 'ctest-vn-80978118'], 'port_security_enabled': True, 'description': ''}}
2025-02-12 00:39:41,266 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d5bceda-2d54-4c7f-a6cf-83cc470df08a', 'name': '', 'tenant_id': '97264126992d4273909970ca19b6aa39', 'network_id': '9e453826-58ca-4c01-9c3a-2c83c29e7086', 'ip_version': 4, 'cidr': '58.230.229.0/26', 'allocation_pools': [{'start': '58.230.229.2', 'end': '58.230.229.62'}], 'gateway_ip': '58.230.229.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.230.229.2', 'tags': [], 'project_id': '97264126992d4273909970ca19b6aa39'}}
2025-02-12 00:39:41,284 - INFO - Created VN ctest-vn-80978118
2025-02-12 00:39:41,341 - DEBUG - VN ctest-vn-80978118 UUID is 9e453826-58ca-4c01-9c3a-2c83c29e7086
2025-02-12 00:39:41,655 - DEBUG - Response for create_network : {'network': {'id': '624f3d76-da0d-4cdb-8a47-7241e71dcc7c', 'name': 'ctest-vn-45647356', 'tenant_id': '97264126992d4273909970ca19b6aa39', 'project_id': '97264126992d4273909970ca19b6aa39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49098785', 'ctest-vn-45647356'], 'port_security_enabled': True, 'description': ''}}
2025-02-12 00:39:41,842 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c04015e1-a30b-4549-8d0a-e61f430181fe', 'name': '', 'tenant_id': '97264126992d4273909970ca19b6aa39', 'network_id': '624f3d76-da0d-4cdb-8a47-7241e71dcc7c', 'ip_version': 4, 'cidr': '113.6.107.192/26', 'allocation_pools': [{'start': '113.6.107.194', 'end': '113.6.107.254'}], 'gateway_ip': '113.6.107.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.6.107.194', 'tags': [], 'project_id': '97264126992d4273909970ca19b6aa39'}}
2025-02-12 00:39:41,861 - INFO - Created VN ctest-vn-45647356
2025-02-12 00:39:41,913 - DEBUG - VN ctest-vn-45647356 UUID is 624f3d76-da0d-4cdb-8a47-7241e71dcc7c
2025-02-12 00:39:42,028 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49098785:ctest-vn-80978118, 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-49098785:ctest-vn-45647356, 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-02-12 00:39:42,321 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e453826-58ca-4c01-9c3a-2c83c29e7086', 'name': 'ctest-vn-80978118', 'tenant_id': '97264126992d4273909970ca19b6aa39', 'project_id': '97264126992d4273909970ca19b6aa39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d5bceda-2d54-4c7f-a6cf-83cc470df08a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49098785', 'ctest-vn-80978118'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49098785', 'ctest-policy-allow-all-36849743']], 'subnet_ipam': [{'subnet_cidr': '58.230.229.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-12 00:39:42,549 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '624f3d76-da0d-4cdb-8a47-7241e71dcc7c', 'name': 'ctest-vn-45647356', 'tenant_id': '97264126992d4273909970ca19b6aa39', 'project_id': '97264126992d4273909970ca19b6aa39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c04015e1-a30b-4549-8d0a-e61f430181fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49098785', 'ctest-vn-45647356'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49098785', 'ctest-policy-allow-all-36849743']], 'subnet_ipam': [{'subnet_cidr': '113.6.107.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-12 00:39:42,705 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-12 00:39:43,010 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-12 00:39:43,037 - DEBUG - Requesting: http://10.0.0.32:8082/domain/9ea21451-d16d-490b-b0ef-656074008d2b
2025-02-12 00:39:43,051 - DEBUG - Requesting: http://10.0.0.32:8082/project/97264126-992d-4273-9099-70ca19b6aa39
2025-02-12 00:39:43,127 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/9e453826-58ca-4c01-9c3a-2c83c29e7086
2025-02-12 00:39:43,139 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/9e453826-58ca-4c01-9c3a-2c83c29e7086
2025-02-12 00:39:43,149 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/d75c27b2-594a-4e87-8ef0-59c36f45c04f
2025-02-12 00:39:43,157 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/d75c27b2-594a-4e87-8ef0-59c36f45c04f
2025-02-12 00:39:43,164 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/e9c9a5b3-476d-4e02-9144-878430b98c82
2025-02-12 00:39:43,171 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-12 00:39:43,171 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/9e453826-58ca-4c01-9c3a-2c83c29e7086
2025-02-12 00:39:43,180 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/d75c27b2-594a-4e87-8ef0-59c36f45c04f
2025-02-12 00:39:43,192 - INFO - Verified VN network id 9 for VN 9e453826-58ca-4c01-9c3a-2c83c29e7086
2025-02-12 00:39:43,192 - INFO - Verifications in API Server for VN ctest-vn-80978118 passed
2025-02-12 00:39:43,192 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/9e453826-58ca-4c01-9c3a-2c83c29e7086
2025-02-12 00:39:43,203 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/d75c27b2-594a-4e87-8ef0-59c36f45c04f
2025-02-12 00:39:43,211 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/d75c27b2-594a-4e87-8ef0-59c36f45c04f
2025-02-12 00:39:43,218 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/e9c9a5b3-476d-4e02-9144-878430b98c82
2025-02-12 00:39:43,229 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49098785:ctest-vn-80978118', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49098785', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11404583368735214593', 'uuid-lslong': '11257359162983477382'}, 'enable': 'true', 'created': '2025-02-12T00:39:41', 'last-modified': '2025-02-12T00:39:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.928555'}
2025-02-12 00:39:43,236 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-12 00:39:43,236 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80978118 passed
2025-02-12 00:39:43,236 - DEBUG - ====Verifying policy data for ctest-vn-80978118 in API_Server ======
2025-02-12 00:39:43,237 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-12 00:39:43,243 - DEBUG - Requesting: http://10.0.0.32:8082/domain/9ea21451-d16d-490b-b0ef-656074008d2b
2025-02-12 00:39:43,254 - DEBUG - Requesting: http://10.0.0.32:8082/project/97264126-992d-4273-9099-70ca19b6aa39
2025-02-12 00:39:43,322 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/9e453826-58ca-4c01-9c3a-2c83c29e7086
2025-02-12 00:39:43,332 - DEBUG - ==>Verifying data for policy with id: eb2a4880-251b-49aa-bcc9-a237b5be1fcb, fqn: ['default-domain', 'ctest-TestBasicPolicy-49098785', 'ctest-policy-allow-all-36849743']
2025-02-12 00:39:43,332 - INFO - VN ctest-vn-80978118 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-12 00:39:43,333 - DEBUG - Verifying the vn in opserver
2025-02-12 00:39:43,333 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49098785:ctest-vn-80978118 virtual network link through opserver 10.0.0.32
2025-02-12 00:39:43,333 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-02-12 00:39:43,628 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-02-12 00:39:43,682 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49098785:ctest-vn-80978118', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49098785:ctest-vn-80978118?flat'}
2025-02-12 00:39:43,682 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49098785:ctest-vn-80978118 is found in opserver
2025-02-12 00:39:43,695 - DEBUG - Do not have enough data to verify VN in agent
2025-02-12 00:39:43,700 - DEBUG - VRF ids for VN ctest-vn-80978118: {}
2025-02-12 00:39:43,700 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-12 00:39:43,706 - DEBUG - Requesting: http://10.0.0.32:8082/domain/9ea21451-d16d-490b-b0ef-656074008d2b
2025-02-12 00:39:43,717 - DEBUG - Requesting: http://10.0.0.32:8082/project/97264126-992d-4273-9099-70ca19b6aa39
2025-02-12 00:39:43,792 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/624f3d76-da0d-4cdb-8a47-7241e71dcc7c
2025-02-12 00:39:43,805 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/624f3d76-da0d-4cdb-8a47-7241e71dcc7c
2025-02-12 00:39:43,815 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/14c01564-922e-48b9-9dea-d5082c4040e6
2025-02-12 00:39:43,823 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/14c01564-922e-48b9-9dea-d5082c4040e6
2025-02-12 00:39:43,830 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/605c0b01-7cd5-43ad-96c8-1e51d231875e
2025-02-12 00:39:43,837 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-12 00:39:43,837 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/624f3d76-da0d-4cdb-8a47-7241e71dcc7c
2025-02-12 00:39:43,847 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/14c01564-922e-48b9-9dea-d5082c4040e6
2025-02-12 00:39:43,861 - INFO - Verified VN network id 10 for VN 624f3d76-da0d-4cdb-8a47-7241e71dcc7c
2025-02-12 00:39:43,861 - INFO - Verifications in API Server for VN ctest-vn-45647356 passed
2025-02-12 00:39:43,861 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/624f3d76-da0d-4cdb-8a47-7241e71dcc7c
2025-02-12 00:39:43,871 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/14c01564-922e-48b9-9dea-d5082c4040e6
2025-02-12 00:39:43,879 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/14c01564-922e-48b9-9dea-d5082c4040e6
2025-02-12 00:39:43,886 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/605c0b01-7cd5-43ad-96c8-1e51d231875e
2025-02-12 00:39:43,899 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49098785:ctest-vn-45647356', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49098785', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7083948319550819547', 'uuid-lslong': '9964058327956442236'}, 'enable': 'true', 'created': '2025-02-12T00:39:41', 'last-modified': '2025-02-12T00:39:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.371118'}
2025-02-12 00:39:43,905 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-12 00:39:43,905 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45647356 passed
2025-02-12 00:39:43,905 - DEBUG - ====Verifying policy data for ctest-vn-45647356 in API_Server ======
2025-02-12 00:39:43,905 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-12 00:39:43,911 - DEBUG - Requesting: http://10.0.0.32:8082/domain/9ea21451-d16d-490b-b0ef-656074008d2b
2025-02-12 00:39:43,923 - DEBUG - Requesting: http://10.0.0.32:8082/project/97264126-992d-4273-9099-70ca19b6aa39
2025-02-12 00:39:43,995 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/624f3d76-da0d-4cdb-8a47-7241e71dcc7c
2025-02-12 00:39:44,005 - DEBUG - ==>Verifying data for policy with id: eb2a4880-251b-49aa-bcc9-a237b5be1fcb, fqn: ['default-domain', 'ctest-TestBasicPolicy-49098785', 'ctest-policy-allow-all-36849743']
2025-02-12 00:39:44,005 - INFO - VN ctest-vn-45647356 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-12 00:39:44,005 - DEBUG - Verifying the vn in opserver
2025-02-12 00:39:44,005 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49098785:ctest-vn-45647356 virtual network link through opserver 10.0.0.32
2025-02-12 00:39:44,005 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-02-12 00:39:44,016 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49098785:ctest-vn-45647356', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49098785:ctest-vn-45647356?flat'}
2025-02-12 00:39:44,016 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49098785:ctest-vn-45647356 is found in opserver
2025-02-12 00:39:44,028 - DEBUG - Do not have enough data to verify VN in agent
2025-02-12 00:39:44,033 - DEBUG - VRF ids for VN ctest-vn-45647356: {}
2025-02-12 00:39:44,095 - DEBUG - Services list from nova: [