2025-07-24 02:27:16,408 - INFO - Domain Default found not creating
2025-07-24 02:27:16,592 - INFO - Project ctest-TestBasicPolicy-31786924 not found, creating it
2025-07-24 02:27:17,114 - INFO - Created Project:ctest-TestBasicPolicy-31786924, ID : 6100d971-4ba5-4999-a5f0-befadc4cd0de
2025-07-24 02:27:18,724 - INFO - ================================================================================
2025-07-24 02:27:18,724 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-24 02:27:18,724 - 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-07-24 02:27:18,991 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-24 02:27:18,991 - INFO - Initial checks done. Running the testcase now
2025-07-24 02:27:18,991 - INFO -
2025-07-24 02:27:19,579 - DEBUG - Response for create_network : {'network': {'id': '4e81acf2-b8ce-4314-9d92-f6a1cd6501b8', 'name': 'ctest-vn-56571079', 'tenant_id': '6100d9714ba54999a5f0befadc4cd0de', 'project_id': '6100d9714ba54999a5f0befadc4cd0de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31786924', 'ctest-vn-56571079'], 'port_security_enabled': True, 'description': ''}}
2025-07-24 02:27:19,782 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd237727d-cb05-47d1-a283-1c4e7aa72ad5', 'name': '', 'tenant_id': '6100d9714ba54999a5f0befadc4cd0de', 'network_id': '4e81acf2-b8ce-4314-9d92-f6a1cd6501b8', 'ip_version': 4, 'cidr': '167.132.145.64/26', 'allocation_pools': [{'start': '167.132.145.66', 'end': '167.132.145.126'}], 'gateway_ip': '167.132.145.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.132.145.66', 'tags': [], 'project_id': '6100d9714ba54999a5f0befadc4cd0de'}}
2025-07-24 02:27:19,803 - INFO - Created VN ctest-vn-56571079
2025-07-24 02:27:19,860 - DEBUG - VN ctest-vn-56571079 UUID is 4e81acf2-b8ce-4314-9d92-f6a1cd6501b8
2025-07-24 02:27:20,207 - DEBUG - Response for create_network : {'network': {'id': 'bc150e3d-1468-4e21-a055-8ade389d11c0', 'name': 'ctest-vn-70254272', 'tenant_id': '6100d9714ba54999a5f0befadc4cd0de', 'project_id': '6100d9714ba54999a5f0befadc4cd0de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31786924', 'ctest-vn-70254272'], 'port_security_enabled': True, 'description': ''}}
2025-07-24 02:27:20,441 - DEBUG - Response for create_subnet : {'subnet': {'id': '02672882-337a-481f-b931-10a612f796d8', 'name': '', 'tenant_id': '6100d9714ba54999a5f0befadc4cd0de', 'network_id': 'bc150e3d-1468-4e21-a055-8ade389d11c0', 'ip_version': 4, 'cidr': '182.0.229.192/26', 'allocation_pools': [{'start': '182.0.229.194', 'end': '182.0.229.254'}], 'gateway_ip': '182.0.229.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.0.229.194', 'tags': [], 'project_id': '6100d9714ba54999a5f0befadc4cd0de'}}
2025-07-24 02:27:20,465 - INFO - Created VN ctest-vn-70254272
2025-07-24 02:27:20,520 - DEBUG - VN ctest-vn-70254272 UUID is bc150e3d-1468-4e21-a055-8ade389d11c0
2025-07-24 02:27:20,654 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31786924:ctest-vn-56571079, 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-31786924:ctest-vn-70254272, 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-07-24 02:27:20,987 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e81acf2-b8ce-4314-9d92-f6a1cd6501b8', 'name': 'ctest-vn-56571079', 'tenant_id': '6100d9714ba54999a5f0befadc4cd0de', 'project_id': '6100d9714ba54999a5f0befadc4cd0de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d237727d-cb05-47d1-a283-1c4e7aa72ad5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31786924', 'ctest-vn-56571079'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31786924', 'ctest-policy-allow-all-86473740']], 'subnet_ipam': [{'subnet_cidr': '167.132.145.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-24 02:27:21,289 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc150e3d-1468-4e21-a055-8ade389d11c0', 'name': 'ctest-vn-70254272', 'tenant_id': '6100d9714ba54999a5f0befadc4cd0de', 'project_id': '6100d9714ba54999a5f0befadc4cd0de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02672882-337a-481f-b931-10a612f796d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31786924', 'ctest-vn-70254272'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31786924', 'ctest-policy-allow-all-86473740']], 'subnet_ipam': [{'subnet_cidr': '182.0.229.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-24 02:27:21,448 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-24 02:27:21,770 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-24 02:27:21,810 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8ce4b32a-1f3b-43f0-a6b5-c82ec0c5a34b
2025-07-24 02:27:21,831 - DEBUG - Requesting: http://10.0.0.50:8082/project/6100d971-4ba5-4999-a5f0-befadc4cd0de
2025-07-24 02:27:21,914 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4e81acf2-b8ce-4314-9d92-f6a1cd6501b8
2025-07-24 02:27:21,926 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4e81acf2-b8ce-4314-9d92-f6a1cd6501b8
2025-07-24 02:27:21,938 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/413af2cc-0039-4d75-a115-b7cb19897a91
2025-07-24 02:27:21,949 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/413af2cc-0039-4d75-a115-b7cb19897a91
2025-07-24 02:27:21,957 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7283ae0d-402c-4d04-b23d-18435d0bbde2
2025-07-24 02:27:21,966 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-24 02:27:21,966 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4e81acf2-b8ce-4314-9d92-f6a1cd6501b8
2025-07-24 02:27:21,979 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/413af2cc-0039-4d75-a115-b7cb19897a91
2025-07-24 02:27:21,998 - INFO - Verified VN network id 11 for VN 4e81acf2-b8ce-4314-9d92-f6a1cd6501b8
2025-07-24 02:27:21,998 - INFO - Verifications in API Server for VN ctest-vn-56571079 passed
2025-07-24 02:27:21,998 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4e81acf2-b8ce-4314-9d92-f6a1cd6501b8
2025-07-24 02:27:22,013 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/413af2cc-0039-4d75-a115-b7cb19897a91
2025-07-24 02:27:22,022 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/413af2cc-0039-4d75-a115-b7cb19897a91
2025-07-24 02:27:22,031 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7283ae0d-402c-4d04-b23d-18435d0bbde2
2025-07-24 02:27:22,047 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31786924:ctest-vn-56571079', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31786924', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5656992765436642068', 'uuid-lslong': '11354408785350558136'}, 'enable': 'true', 'created': '2025-07-24T02:27:19', 'last-modified': '2025-07-24T02:27:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.086704'}
2025-07-24 02:27:22,054 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-24 02:27:22,054 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56571079 passed
2025-07-24 02:27:22,054 - DEBUG - ====Verifying policy data for ctest-vn-56571079 in API_Server ======
2025-07-24 02:27:22,054 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-24 02:27:22,061 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8ce4b32a-1f3b-43f0-a6b5-c82ec0c5a34b
2025-07-24 02:27:22,076 - DEBUG - Requesting: http://10.0.0.50:8082/project/6100d971-4ba5-4999-a5f0-befadc4cd0de
2025-07-24 02:27:22,158 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4e81acf2-b8ce-4314-9d92-f6a1cd6501b8
2025-07-24 02:27:22,173 - DEBUG - ==>Verifying data for policy with id: b00a1202-26a9-4a3e-a23e-0e965b477d5b, fqn: ['default-domain', 'ctest-TestBasicPolicy-31786924', 'ctest-policy-allow-all-86473740']
2025-07-24 02:27:22,173 - INFO - VN ctest-vn-56571079 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-24 02:27:22,173 - DEBUG - Verifying the vn in opserver
2025-07-24 02:27:22,173 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31786924:ctest-vn-56571079 virtual network link through opserver 10.0.0.50
2025-07-24 02:27:22,174 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-24 02:27:22,486 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-24 02:27:22,556 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31786924:ctest-vn-56571079', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31786924:ctest-vn-56571079?flat'}
2025-07-24 02:27:22,556 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31786924:ctest-vn-56571079 is found in opserver
2025-07-24 02:27:22,570 - DEBUG - Do not have enough data to verify VN in agent
2025-07-24 02:27:22,577 - DEBUG - VRF ids for VN ctest-vn-56571079: {}
2025-07-24 02:27:22,578 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-24 02:27:22,585 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8ce4b32a-1f3b-43f0-a6b5-c82ec0c5a34b
2025-07-24 02:27:22,607 - DEBUG - Requesting: http://10.0.0.50:8082/project/6100d971-4ba5-4999-a5f0-befadc4cd0de
2025-07-24 02:27:22,687 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc150e3d-1468-4e21-a055-8ade389d11c0
2025-07-24 02:27:22,704 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc150e3d-1468-4e21-a055-8ade389d11c0
2025-07-24 02:27:22,716 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c9f6cb3-d810-4d93-a5bb-4224e4e0221f
2025-07-24 02:27:22,726 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c9f6cb3-d810-4d93-a5bb-4224e4e0221f
2025-07-24 02:27:22,736 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6bb55210-15e1-430d-b236-e5d6abf77d9f
2025-07-24 02:27:22,746 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-24 02:27:22,746 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc150e3d-1468-4e21-a055-8ade389d11c0
2025-07-24 02:27:22,757 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c9f6cb3-d810-4d93-a5bb-4224e4e0221f
2025-07-24 02:27:22,777 - INFO - Verified VN network id 12 for VN bc150e3d-1468-4e21-a055-8ade389d11c0
2025-07-24 02:27:22,777 - INFO - Verifications in API Server for VN ctest-vn-70254272 passed
2025-07-24 02:27:22,777 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc150e3d-1468-4e21-a055-8ade389d11c0
2025-07-24 02:27:22,793 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c9f6cb3-d810-4d93-a5bb-4224e4e0221f
2025-07-24 02:27:22,804 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c9f6cb3-d810-4d93-a5bb-4224e4e0221f
2025-07-24 02:27:22,814 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6bb55210-15e1-430d-b236-e5d6abf77d9f
2025-07-24 02:27:22,832 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31786924:ctest-vn-70254272', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31786924', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13552754309139549729', 'uuid-lslong': '11553293106126066112'}, 'enable': 'true', 'created': '2025-07-24T02:27:20', 'last-modified': '2025-07-24T02:27:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.616946'}
2025-07-24 02:27:22,840 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-24 02:27:22,840 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70254272 passed
2025-07-24 02:27:22,841 - DEBUG - ====Verifying policy data for ctest-vn-70254272 in API_Server ======
2025-07-24 02:27:22,841 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-24 02:27:22,848 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8ce4b32a-1f3b-43f0-a6b5-c82ec0c5a34b
2025-07-24 02:27:22,864 - DEBUG - Requesting: http://10.0.0.50:8082/project/6100d971-4ba5-4999-a5f0-befadc4cd0de
2025-07-24 02:27:22,941 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc150e3d-1468-4e21-a055-8ade389d11c0
2025-07-24 02:27:22,953 - DEBUG - ==>Verifying data for policy with id: b00a1202-26a9-4a3e-a23e-0e965b477d5b, fqn: ['default-domain', 'ctest-TestBasicPolicy-31786924', 'ctest-policy-allow-all-86473740']
2025-07-24 02:27:22,953 - INFO - VN ctest-vn-70254272 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-24 02:27:22,953 - DEBUG - Verifying the vn in opserver
2025-07-24 02:27:22,953 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31786924:ctest-vn-70254272 virtual network link through opserver 10.0.0.50
2025-07-24 02:27:22,953 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-24 02:27:22,967 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31786924:ctest-vn-70254272', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31786924:ctest-vn-70254272?flat'}
2025-07-24 02:27:22,967 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31786924:ctest-vn-70254272 is found in opserver
2025-07-24 02:27:22,981 - DEBUG - Do not have enough data to verify VN in agent
2025-07-24 02:27:22,987 - DEBUG - VRF ids for VN ctest-vn-70254272: {}
2025-07-24 02:27:23,060 - DEBUG - Services list from nova: [