2025-02-02 14:47:13,518 - INFO - Domain Default found not creating
2025-02-02 14:47:13,675 - INFO - Project ctest-TestBasicPolicy-86800384 not found, creating it
2025-02-02 14:47:14,166 - INFO - Created Project:ctest-TestBasicPolicy-86800384, ID : ecae34c0-1d64-4da6-9c84-2301ec5970b7
2025-02-02 14:47:15,593 - INFO - ================================================================================
2025-02-02 14:47:15,593 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-02 14:47:15,593 - 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-02 14:47:15,852 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.5': '0'}} with
2025-02-02 14:47:15,852 - INFO - Initial checks done. Running the testcase now
2025-02-02 14:47:15,852 - INFO -
2025-02-02 14:47:16,377 - DEBUG - Response for create_network : {'network': {'id': '264b3111-2294-431d-9a8f-356f3a7562ed', 'name': 'ctest-vn-68027948', 'tenant_id': 'ecae34c01d644da69c842301ec5970b7', 'project_id': 'ecae34c01d644da69c842301ec5970b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86800384', 'ctest-vn-68027948'], 'port_security_enabled': True, 'description': ''}}
2025-02-02 14:47:16,568 - DEBUG - Response for create_subnet : {'subnet': {'id': '255d1d9a-886b-405d-94a9-6a10a3df48b6', 'name': '', 'tenant_id': 'ecae34c01d644da69c842301ec5970b7', 'network_id': '264b3111-2294-431d-9a8f-356f3a7562ed', 'ip_version': 4, 'cidr': '7.223.133.192/26', 'allocation_pools': [{'start': '7.223.133.194', 'end': '7.223.133.254'}], 'gateway_ip': '7.223.133.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.223.133.194', 'tags': [], 'project_id': 'ecae34c01d644da69c842301ec5970b7'}}
2025-02-02 14:47:16,586 - INFO - Created VN ctest-vn-68027948
2025-02-02 14:47:16,640 - DEBUG - VN ctest-vn-68027948 UUID is 264b3111-2294-431d-9a8f-356f3a7562ed
2025-02-02 14:47:16,967 - DEBUG - Response for create_network : {'network': {'id': '34e08675-10c6-4b1a-ab22-b8526782e5cc', 'name': 'ctest-vn-90695145', 'tenant_id': 'ecae34c01d644da69c842301ec5970b7', 'project_id': 'ecae34c01d644da69c842301ec5970b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86800384', 'ctest-vn-90695145'], 'port_security_enabled': True, 'description': ''}}
2025-02-02 14:47:17,137 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd45318a5-05a8-4e37-a3ca-26040f59c07d', 'name': '', 'tenant_id': 'ecae34c01d644da69c842301ec5970b7', 'network_id': '34e08675-10c6-4b1a-ab22-b8526782e5cc', 'ip_version': 4, 'cidr': '31.74.194.64/26', 'allocation_pools': [{'start': '31.74.194.66', 'end': '31.74.194.126'}], 'gateway_ip': '31.74.194.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.74.194.66', 'tags': [], 'project_id': 'ecae34c01d644da69c842301ec5970b7'}}
2025-02-02 14:47:17,156 - INFO - Created VN ctest-vn-90695145
2025-02-02 14:47:17,208 - DEBUG - VN ctest-vn-90695145 UUID is 34e08675-10c6-4b1a-ab22-b8526782e5cc
2025-02-02 14:47:17,320 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86800384:ctest-vn-68027948, 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-86800384:ctest-vn-90695145, 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-02 14:47:17,613 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '264b3111-2294-431d-9a8f-356f3a7562ed', 'name': 'ctest-vn-68027948', 'tenant_id': 'ecae34c01d644da69c842301ec5970b7', 'project_id': 'ecae34c01d644da69c842301ec5970b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['255d1d9a-886b-405d-94a9-6a10a3df48b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86800384', 'ctest-vn-68027948'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86800384', 'ctest-policy-allow-all-17552974']], 'subnet_ipam': [{'subnet_cidr': '7.223.133.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-02 14:47:17,851 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34e08675-10c6-4b1a-ab22-b8526782e5cc', 'name': 'ctest-vn-90695145', 'tenant_id': 'ecae34c01d644da69c842301ec5970b7', 'project_id': 'ecae34c01d644da69c842301ec5970b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d45318a5-05a8-4e37-a3ca-26040f59c07d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86800384', 'ctest-vn-90695145'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86800384', 'ctest-policy-allow-all-17552974']], 'subnet_ipam': [{'subnet_cidr': '31.74.194.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-02 14:47:18,000 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-02-02 14:47:18,299 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-02-02 14:47:18,328 - DEBUG - Requesting: http://10.0.0.29:8082/domain/12cfde75-4360-4f78-bcfd-bc6852afedc0
2025-02-02 14:47:18,342 - DEBUG - Requesting: http://10.0.0.29:8082/project/ecae34c0-1d64-4da6-9c84-2301ec5970b7
2025-02-02 14:47:18,419 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/264b3111-2294-431d-9a8f-356f3a7562ed
2025-02-02 14:47:18,432 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/264b3111-2294-431d-9a8f-356f3a7562ed
2025-02-02 14:47:18,441 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/a615de3b-1303-4249-849e-eb74cc6afab5
2025-02-02 14:47:18,448 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/a615de3b-1303-4249-849e-eb74cc6afab5
2025-02-02 14:47:18,456 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/302582fa-5191-411a-9139-59dba350bd06
2025-02-02 14:47:18,462 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-02 14:47:18,462 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/264b3111-2294-431d-9a8f-356f3a7562ed
2025-02-02 14:47:18,471 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/a615de3b-1303-4249-849e-eb74cc6afab5
2025-02-02 14:47:18,486 - INFO - Verified VN network id 9 for VN 264b3111-2294-431d-9a8f-356f3a7562ed
2025-02-02 14:47:18,486 - INFO - Verifications in API Server for VN ctest-vn-68027948 passed
2025-02-02 14:47:18,486 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/264b3111-2294-431d-9a8f-356f3a7562ed
2025-02-02 14:47:18,497 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/a615de3b-1303-4249-849e-eb74cc6afab5
2025-02-02 14:47:18,508 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/a615de3b-1303-4249-849e-eb74cc6afab5
2025-02-02 14:47:18,524 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/302582fa-5191-411a-9139-59dba350bd06
2025-02-02 14:47:18,538 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86800384:ctest-vn-68027948', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86800384', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2759353146358907677', 'uuid-lslong': '11137179155348939501'}, 'enable': 'true', 'created': '2025-02-02T14:47:16', 'last-modified': '2025-02-02T14:47:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.946493'}
2025-02-02 14:47:18,544 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-02 14:47:18,544 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68027948 passed
2025-02-02 14:47:18,544 - DEBUG - ====Verifying policy data for ctest-vn-68027948 in API_Server ======
2025-02-02 14:47:18,544 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-02-02 14:47:18,550 - DEBUG - Requesting: http://10.0.0.29:8082/domain/12cfde75-4360-4f78-bcfd-bc6852afedc0
2025-02-02 14:47:18,561 - DEBUG - Requesting: http://10.0.0.29:8082/project/ecae34c0-1d64-4da6-9c84-2301ec5970b7
2025-02-02 14:47:18,632 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/264b3111-2294-431d-9a8f-356f3a7562ed
2025-02-02 14:47:18,642 - DEBUG - ==>Verifying data for policy with id: 2621f69d-6d35-4810-b558-386811114912, fqn: ['default-domain', 'ctest-TestBasicPolicy-86800384', 'ctest-policy-allow-all-17552974']
2025-02-02 14:47:18,642 - INFO - VN ctest-vn-68027948 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-02 14:47:18,643 - DEBUG - Verifying the vn in opserver
2025-02-02 14:47:18,643 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86800384:ctest-vn-68027948 virtual network link through opserver 10.0.0.29
2025-02-02 14:47:18,643 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-02-02 14:47:18,934 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-02-02 14:47:18,991 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86800384:ctest-vn-68027948', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86800384:ctest-vn-68027948?flat'}
2025-02-02 14:47:18,991 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86800384:ctest-vn-68027948 is found in opserver
2025-02-02 14:47:19,003 - DEBUG - Do not have enough data to verify VN in agent
2025-02-02 14:47:19,009 - DEBUG - VRF ids for VN ctest-vn-68027948: {}
2025-02-02 14:47:19,009 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-02-02 14:47:19,015 - DEBUG - Requesting: http://10.0.0.29:8082/domain/12cfde75-4360-4f78-bcfd-bc6852afedc0
2025-02-02 14:47:19,026 - DEBUG - Requesting: http://10.0.0.29:8082/project/ecae34c0-1d64-4da6-9c84-2301ec5970b7
2025-02-02 14:47:19,099 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/34e08675-10c6-4b1a-ab22-b8526782e5cc
2025-02-02 14:47:19,111 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/34e08675-10c6-4b1a-ab22-b8526782e5cc
2025-02-02 14:47:19,137 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/e591b4d3-a16f-4b5e-9313-c80b30851ea7
2025-02-02 14:47:19,163 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/e591b4d3-a16f-4b5e-9313-c80b30851ea7
2025-02-02 14:47:19,182 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/f496e8b5-d3f1-4c3e-b36d-9760216f1f2d
2025-02-02 14:47:19,192 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-02 14:47:19,192 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/34e08675-10c6-4b1a-ab22-b8526782e5cc
2025-02-02 14:47:19,205 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/e591b4d3-a16f-4b5e-9313-c80b30851ea7
2025-02-02 14:47:19,269 - INFO - Verified VN network id 10 for VN 34e08675-10c6-4b1a-ab22-b8526782e5cc
2025-02-02 14:47:19,269 - INFO - Verifications in API Server for VN ctest-vn-90695145 passed
2025-02-02 14:47:19,269 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/34e08675-10c6-4b1a-ab22-b8526782e5cc
2025-02-02 14:47:19,294 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/e591b4d3-a16f-4b5e-9313-c80b30851ea7
2025-02-02 14:47:19,306 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/e591b4d3-a16f-4b5e-9313-c80b30851ea7
2025-02-02 14:47:19,319 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/f496e8b5-d3f1-4c3e-b36d-9760216f1f2d
2025-02-02 14:47:19,341 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86800384:ctest-vn-90695145', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86800384', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3810193122106166042', 'uuid-lslong': '12331621393757300172'}, 'enable': 'true', 'created': '2025-02-02T14:47:16', 'last-modified': '2025-02-02T14:47:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.507836'}
2025-02-02 14:47:19,348 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-02 14:47:19,348 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90695145 passed
2025-02-02 14:47:19,348 - DEBUG - ====Verifying policy data for ctest-vn-90695145 in API_Server ======
2025-02-02 14:47:19,348 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-02-02 14:47:19,370 - DEBUG - Requesting: http://10.0.0.29:8082/domain/12cfde75-4360-4f78-bcfd-bc6852afedc0
2025-02-02 14:47:19,386 - DEBUG - Requesting: http://10.0.0.29:8082/project/ecae34c0-1d64-4da6-9c84-2301ec5970b7
2025-02-02 14:47:19,490 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/34e08675-10c6-4b1a-ab22-b8526782e5cc
2025-02-02 14:47:19,503 - DEBUG - ==>Verifying data for policy with id: 2621f69d-6d35-4810-b558-386811114912, fqn: ['default-domain', 'ctest-TestBasicPolicy-86800384', 'ctest-policy-allow-all-17552974']
2025-02-02 14:47:19,503 - INFO - VN ctest-vn-90695145 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-02 14:47:19,503 - DEBUG - Verifying the vn in opserver
2025-02-02 14:47:19,503 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86800384:ctest-vn-90695145 virtual network link through opserver 10.0.0.29
2025-02-02 14:47:19,503 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-02-02 14:47:19,519 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86800384:ctest-vn-90695145', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86800384:ctest-vn-90695145?flat'}
2025-02-02 14:47:19,519 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86800384:ctest-vn-90695145 is found in opserver
2025-02-02 14:47:19,530 - DEBUG - Do not have enough data to verify VN in agent
2025-02-02 14:47:19,535 - DEBUG - VRF ids for VN ctest-vn-90695145: {}
2025-02-02 14:47:19,615 - DEBUG - Services list from nova: [